Defense Clock
Time limit2sMemory limit1024 MB
Given the total service days N and completed days M, print the Defense Clock time in HH:MM, where 1440 minutes span the full service period, truncated to whole minutes.
- Level
Easy2 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Sky still has days left to serve, and every day she looks at the Welcome Clock (어서오시계) to pass the time. The site counts the service status of soldiers in each class in several ways.
One of these is the Defense Clock. It starts at : when a soldier enlists and ends at : when the soldier is discharged. For example, if of military service is done, the clock shows :.
For Sky, who checks the Defense Clock every day, you are given the total number of service days and the number of days completed. Find the time the Defense Clock shows.
Input
The first line contains two integers and , the total number of service days and the number of completed days, separated by a space. (, )
Output
Print the time on the Defense Clock in HH:MM format, truncated to whole minutes. HH is an integer from 0 to 24, and MM is an integer from 0 to 59. Pad single digits with a leading 0.