#K3656. Late Book Return Fine Calculator

    ID: 25781 Type: Default 1000ms 256MiB

Late Book Return Fine Calculator

Late Book Return Fine Calculator

You are given two dates: a due date and a return date, both in (YYYY\text{-}MM\text{-}DD) format. The fine is calculated as follows: if the return date is later than the due date, the fine equals the number of days late; otherwise, the fine is 0. For example, if the due date is 2023-10-01 and the return date is 2023-10-05, the fine is (5 - 1 = 4) units. Your task is to compute this fine.

inputFormat

Input is provided via standard input (stdin) as two lines. The first line contains the due date and the second line contains the return date, both in the format (YYYY\text{-}MM\text{-}DD).

outputFormat

Output the fine as an integer to standard output (stdout).## sample

2023-10-01
2023-10-01
0

</p>