Birthday#858

Birthday

1 second
64 megabytes
Very easy

Given the day and month of birth, as well as the current day, month, and year, determine how many days are left until the birthday.

Input

The first line contains the day and month of birth, separated by spaces.

The second line contains the current day, month, and year, separated by spaces.

The year is from to , the month is from to , and the day is from to the number of days in the respective month.

Output

Output the number of days remaining until the birthday.

Examples

Example 1

Loading
Loading