407085: GYM102697 056 Stopwatch issues

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

056. Stopwatch issuestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

You like to use your stopwatch all the time, but there is one major problem with it. The stopwatch only displays seconds, so when it says 472 seconds have passed you have no idea what that means. Given a time in seconds display the years, days, hours, minutes and seconds that have passed.

Input

The first line is number of seconds that have gone by.

Output

Print the time that has passed in the following format. "X years, X days, X hours, X minutes and X seconds". If the value for any time is 0, do not include it. Also be sure to watch out for plurals and using "and". If the time is 0, say "now" .

ExamplesInput
1
Output
1 second
Input
98753213
Output
3 years, 47 days, 23 hours, 26 minutes and 53 seconds

加入题单

上一题 下一题 算法标签: