100 atcoder#ABC156A. [ABC156A] Beginner
[ABC156A] Beginner
Score : points
Problem Statement
Takahashi is a member of a programming competition site, ButCoder.
Each member of ButCoder is assigned two values: Inner Rating and Displayed Rating.
The Displayed Rating of a member is equal to their Inner Rating if the member has participated in or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus when the member has participated in contests.
Takahashi has participated in contests, and his Displayed Rating is . Find his Inner Rating.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print his Inner Rating.
2 2919
3719
Takahashi has participated in contests, which is less than , so his Displayed Rating is his Inner Rating minus .
Thus, Takahashi's Inner Rating is .
22 3051
3051