URI Online Judge | 2315

Easy Difference Between Dates

By Leonardo Fernandes, IFSC BR Brazil

Timelimit: 1

Your program must read two dates (day and month) and calculate the difference between them, in days. Consider it's a regular year (february has 28 days).

Input

The input has two rows with two integers each, representing day and month of the first and second dates. The first date is always smaller than or equal to the second.

Output

The output is the number of days between the first and second date.

Input Samples Output Samples

21 2

1 3

8

28 7

29 7

1

15 5

1 8

78