~/algor $ cat contests/round-8/J
J. Time zones
Problem J
ICPC rules
1000 ms
64 MB
In Tashkent it is now hours minutes. Find what time it is at this moment in the city number . The cities and their difference from Tashkent time:
| City | Difference | |
|---|---|---|
| Tashkent | ||
| Moscow | hours behind | |
| London | hours behind | |
| New York | hours behind | |
| Tokyo | hours ahead | |
| Delhi | minutes ahead |
The time is in -hour format: 00:00 comes after 23:59. The date (day) is not printed.
Input
One line with three integers: , and .
Output
The time as HH:MM: hours and minutes in two digits, with a leading if needed (for example, 09:05).
Note
Examples
Input #1
2 14 30
Output #1
12:30
Input #2
6 23 45
Output #2
00:15