Statement
Statement language
Woohyun takes exams. Exam is Korean.
Each exam has a maximum score of . However, Woohyun's Korean score cannot exceed .
Find the maximum total score Woohyun can receive.
Input
The input is given from Standard Input in the following format:
Each case is given in the following format:
Output
For each test case, print the maximum total score Woohyun can receive on one line.
Constraints
- .
- .
Subtasks
Samples
Input
3
1
3
10
Output
49
249
949