In the AtCoder Kingdom, dates are formatted using the Gregorian calendar in the "year-month-day" order (e.g., 2018-5-3) or in the "month-day" order without the year (e.g., 5-3). A date is defined as Takahashi when the month and the day are equal. For example, May 5 (5-5) is a Takahashi date.
Your task is to determine how many Takahashi days exist between January 1, 2018, and a specified date of the form 2018-a-b, where a represents the month and b represents the day.
Input Format
The input consists of two integers:
a (1 ≤ a ≤ 12): The month of the last date.
b (1 ≤ b ≤ 31): The day of the last date.
Output Format
Output a single integer representing the total number of Takahashi days from January 1, 2018, through 2018-a-b.
Example
Input 1:
text
5 5
Output 1:
text
5
Explanation: The Takahashi days are 1-1, 2-2, 3-3, 4-4, and 5-5.
Input 2:
text
12 31
Output 2:
text
12
Explanation: The Takahashi days from 1-1 to 12-31 are 1-1, 2-2, 3-3, 4-4, 5-5, 6-6, 7-7, 8-8, 9-9, 10-10, 11-11, and 12-12.
Constraints
The specified date (a-b) will always be valid within the context of the Gregorian calendar.
Solution Location
The solution to this task should be implemented in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.