YCK went to Japan during the Christmas holiday. He has $-300$ happiness initially. He gains $300$ happiness after visiting every tourist spot, but loses $50$ happiness after every minute he travels by train. During the flight back to Hong Kong, he will eat ice cream if and only if his happiness is less than $0$, and his happiness will increase by $100$.

Input

The first line of input contains an integer $T$, representing the number of tourist spots visited.
The second line contains an integer $M$, representing the number of minutes YCK traveled on the train.

Output

Output YCK's degree of happiness after returning to Hong Kong.

Constraints

Subtask 1 (100%): $0 \le T, M \le 10^9$

Sample Test Cases

Input Output
10
20
1700
Click to copy.

Scoring: Per Subtask
Authored by wy23493
Appeared in WYHK 2025 Mini Contest 1 [Session 2] and WYHK 2025 Mini Contest 1