The station at the Simferopol railway terminal
The clock tower at the train station is a notable landmark and a symbol of Simferopol. Located adjacent to the railway tracks, it has been greeting visitors to the city since the 1950s. The tower is topped with a red five-pointed star that rises forty-two meters into the sky, and each of its four clock faces measures over three meters in diameter.
The clock "chimes" every 15 minutes, specifically when the minute hand is at 3, 6, 9, or 12. Given the start and end times, your task is to determine how many times the clock will "chime" within this interval.
Input
Each moment in time is specified by five integers: the current year (1955 ≤ year ≤ 10^9), month (1 ≤ month ≤ 12), day (1 ≤ day ≤ 31), and the current time in a 24-hour format, consisting of the number of hours (0 ≤ hour ≤ 23) and the number of minutes (0 ≤ minute ≤ 59). The first line provides the start time, and the second line provides the end time. It is guaranteed that the dates are valid and that the start time is not later than the end time.
Output
Print the number of times the clock will "chime" during the specified time interval, including the start and end times.