#abc096a. [abc096_a]Day of Takahashi
[abc096_a]Day of Takahashi
Problem Statement
In AtCoder Kingdom, Gregorian calendar is used, and dates are written in the "year-month-day" order, or the "month-day" order without the year.
For example, May , is written as --, or - without the year.
In this country, a date is called Takahashi when the month and the day are equal as numbers. For example, - is Takahashi.
How many days from -- through -- are Takahashi?
Constraints
- is an integer between and (inclusive).
- is an integer between and (inclusive).
- -- is a valid date in Gregorian calendar.
Input
Input is given from Standard Input in the following format:
Output
Print the number of days from -- through -- that are Takahashi.
Sample Input 1
5 5
Sample Output 1
5
There are five days that are Takahashi: -, -, -, - and -.
Sample Input 2
2 1
Sample Output 2
1
There is only one day that is Takahashi: -.
Sample Input 3
11 30
Sample Output 3
11
There are eleven days that are Takahashi: -, -, -, -, -, -, -, -, -, - and -.