405217: GYM101848 A Modulo

Memory Limit:512 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Modulotime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard output

As a simple and boring task, you are asked to do modulo on floating numbers.

Given a, b, please calculate .

Notice that the modulo supported by some programming languages like C++, Java or Python might be not enough. You may have to implement a special version for this task.

Input

Two space-separated floating numbers a, b (0 < a, b ≤ 109). Exactly 9 digits are kept after the decimal point.

Output

Print the answer with absolute or relative error not greater than 10 - 15.

ExamplesInput
3.000000000 2.000000000
Output
1.000000000
Input
0.400000000 0.200000000
Output
0

加入题单

上一题 下一题 算法标签: