LogiQuest

330. Days Between Dates

MediumCalendar

Print the number of days between two Gregorian dates (absolute difference).

Input format

Line 1: d1 m1 y1 Line 2: d2 m2 y2

Output format

The number of days.

Example 1

Input

1 1 2024
1 3 2024

Output

60

Example 2

Input

15 8 1947
26 1 1950

Output

895

Constraints

1 ≤ y ≤ 9999

Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.

Loading the MyLoginn IDE…