Calendar
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Small Nicephorus constantly forgets how old he is. So his parents were hanged in his room, calendar, where specifically marked birthday Nicephorus. But consider how much his age, date of birth and current date Nicephorus did not know how. Help him!
Input
The first line of the input file given three positive integers: day, month and year of the birth of Nicephorus. The second line given the current date in the same format. Years in both the dates do not exceed 10^5 and ensures that the date of birth Nicephorus strictly before the current date.
Output
The output file output a single number - the age of Nicephorus.
Examples
Input #1
Answer #1
Input #5
Answer #5
Submissions 5K
Acceptance rate 36%