An e-commerce company is afraid of overloads on its website. So they have planned to use dedicated servers for each item going on sale. To minimize the cost, they are required to manage the traffic with a minimal number of servers. Additionally, each server needs 5 minutes time to be switched for its use from the current item to another. For the first item the server handles, it does not take any time as it had been configured a day before. Write a program to manage the servers.
Input format
Output format
Print the minimum number of servers required to accomplish an issue of free sale.
Note
Constraints
1≤n≤1000
00≤hh,HH≤23
00≤mm,MM≤59