HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


Timer

Section problems

• Binary to decimal
• Circle
• City Tour
• Dijkstra
• Fibonacci Series
• Find the biggest 2
• Find the biggest 3
• Sign
• Timer
• Tickets
• find the numbers
• Flowers
• Flowchart 1
• Flowchart 2
• Flowchart 3
• Connected components
• Going to the Movies

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 200/400/400/400 ms. Memory limit 65000/65000/65000/65000 Kb.

In the middle of the night (at 00:00) John started timer on his watch. Timer shows how many minutes passed after starting it (e.g. timer will show 75 at 01:15). At a certain time timer shows that N minutes passed after starting. Write a program that calculates exact time according to N.

Input
A single integer N ≤ 1400

Output
Time in hours and minutes, as shown in exmples

Examples

standart input standart output
75 1h 15m
123 2h 3m
Для отправки решений необходимо выполнить вход.

www.contester.ru