10034 - moocHW1c   

Description

The input contains two floating numbers X and P.

Suppose that 0

The number P represents the precision, which only has four possible values in this problem: 1, 0.1, 0.01, and 0.001.

The task is to round off the number X with respect to the given precisoin P.

For example, if X is 0.4526 and P is 0.1, then the answer is 0.5000.

If X is 0.4526 and P is 0.01, then the answer is 0.4500. If X is 0.5678 and P is 1, then the answer is 1.0000.

 

[注意輸出的最後要換行]

Input

 Two floating point numbers X and P, where 0

Output

 The number after rounding off. The format should be the same as X: four digits after the decimal point.

Sample Input  Download

Sample Output  Download

Tags

dp



Discuss