#K15496. Garden Visit Duration

    ID: 24369 Type: Default 1000ms 256MiB

Garden Visit Duration

Garden Visit Duration

You have arrived at a garden that is open daily from \(08:00\) to \(20:00\). Given the current time in the format \(HH:MM\) (24-hour clock), determine the maximum number of minutes you are allowed to stay. Note that even if the garden is open, you cannot stay for more than 60 minutes, regardless of how much time remains before closing.

If you arrive before \(08:00\) or at/after \(20:00\), you cannot stay at all and the output should be 0.

inputFormat

The input is a single line containing the current time in the format HH:MM. There are no extra spaces.

outputFormat

Output a single integer representing the maximum number of minutes you can stay in the garden.

## sample
07:30
0