atcoder#SUMITB2019A. November 30
November 30
Score: points
Problem Statement
In this problem, a date is written as Y-M-D. For example, -- means November , .
Integers , and will be given as input. It is known that the date -- follows --. Determine whether the date -- is the last day of a month.
Constraints
- Both -- and -- are valid dates in the Gregorian calendar.
- The date -- follows --.
Input
Input is given from Standard Input in the following format:
Output
If the date -- is the last day of a month, print 1
; otherwise, print 0
.
11 16
11 17
0
November is not the last day of a month.
11 30
12 1
1
November is the last day of November.