Bank Transfer
InterviewTime limit1sMemory limit512 MB
Given the transfer amount k, compute the commission of 25 tugriks plus 1 percent of k, clamped between 100 and 2000.
- Level
Easy2 of 10
- Topics
- Math, Implementation, Brute force
- Solved
- No attempts yet
Problem
Tanya has an account at "Redgotts" bank. The bank charges a commission to transfer money to "Bluegotts" bank, where her friend Vanya has an account.
Tanya read her bank's rules and learned the following:
The commission for the bank transfer is 25 tugriks plus 1% of the sum transferred. However, the commission is never smaller than 100 tugriks, and cannot exceed 2000 tugriks.
Tanya plans to transfer k tugriks to Vanya. Help her find out what the commission would be.
Input
Input is a single integer k ().
Output
Output one floating point value: the commission for the transfer. The value must be printed with at least two exact digits after the decimal point.