#t221. 逗号分隔符

逗号分隔符

Comma-Separated Values

Problem Background

Special for beginners, ^_^

Problem Description

Input 3 values of type double and output the last one.

Input Format

Three decimals of type double, separated by commas.

Output Format

Output the third number, accurate to 8 decimal places.

Sample Input

1.1231414122,3.2333222222232333,533.1111199999999999922222222223333

Sample Output

533.11112000

Constraints

1s, 1024KiB for each test case.

Hint

  • The nasty part of this problem: the three numbers are separated by commas, not spaces! cin >> will get stuck at a comma.
  • Trick: use a char variable to read the commas as ordinary characters — read like cin >> a >> dot >> b >> dot >> c, interleaving them.
  • Output only the third number, to 8 decimal places.