#P74. 【例14.2】 四舍六入五留双

【例14.2】 四舍六入五留双

Description

Input a real number ff and an integer dd.
Output the real number ff rounded to dd decimal places using the "round to even" method.
ff can have up to 30 decimal places.
0f10 \le f \le 1
1d81 \le d \le 8
The "round to even" method means that if the number is exactly 0.5, it is rounded to the nearest even number.
For example, when rounding to the nearest integer, 0.4 becomes 0, 0.5 becomes 0, 0.50001 becomes 1, 0.6 becomes 1, 1.5 becomes 2, and 2.5 becomes 2.

Input Format

Input consists of a single line with a floating-point number ff and an integer dd.

Output Format

Output a single line with a floating-point number representing the answer.

Sample

0.123456789 5
0.12346