Little Nikifor constantly forgets how old he is. That is why his parents hung a calendar in his room with his birthday specially marked. However, Nikifor does not know how to calculate his age based on his birth date and the current date. Help him!
The first line of the input file contains three natural numbers: the day, month, and year of Nikifor's birth. The second line contains the current date in the same format. The years in both dates do not exceed 10^5. It is guaranteed that Nikifor's birth date is strictly earlier than the current date.
Print a single number — Nikifor's age.
Example 1
Example 5