LogiQuest

334. ATM Withdrawal

EasyConditionals

A withdrawal must be a multiple of 100 and the balance must cover the amount plus a ₹10 fee. Print the new balance with 2 decimal places, or print the original balance unchanged if the withdrawal fails.

Input format

A single line: amount balance

Output format

The balance.

Example 1

Input

500 2000.00

Output

1490.00

Example 2

Input

550 2000.00

Output

2000.00

Constraints

0 < amount ≤ 10⁶ 0 ≤ balance ≤ 10⁷

Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.

Loading the MyLoginn IDE…