Hello National Taiwan University of Science and Technology!

Problem 1229. -- 106物件導向程式設計作業 - 01 - ComputeHMS

1229: 106物件導向程式設計作業 - 01 - ComputeHMS

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 687  Solved: 166
[Submit][Status][Web Board]

Description

Write a program that inputs an integer that represents a length of time in seconds.  The program should then output the number of hours, minutes, and seconds that corresponds to that number of seconds.

Input

if the user inputs 50391 total seconds

Output

the program should output 13 hours, 59 minutes, and 51 seconds

Sample Input

50391
489123456786
569035139015

Sample Output

13 hours 59 minutes and 51 seconds
135867626 hours 53 minutes and 6 seconds
158065316 hours 23 minutes and 35 seconds

HINT

Source

[Submit][Status][Web Board]