시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB110635254.737%

문제

All your games track your time played in minutes. You have decided to create a program that will convert the minutes into years, days, hours and minutes.

입력

The first line will contain the number of inputs that follow. Each input will consist of a game title and the number of minutes played, in the following format:

gameTitle,minutesPlayed

출력

For each input display the game title followed by how long it has been played in years, days, hours and minutes. Each unit of time is only printed if it has a value is greater than 0. All the text on the same line is separated by a single space.

Result Format:

GameTitle - # year(s) # day(s) # hour(s) # minute(s)

예제 입력 1

5
2048,800
Halo,1097578
Heroes of the Storm,6736732
Infinity Blade,78
Xcom,43

예제 출력 1

2048 - 13 hour(s) 20 minute(s)
Halo - 2 year(s) 32 day(s) 4 hour(s) 58 minute(s)
Heroes of the Storm - 12 year(s) 298 day(s) 6 hour(s) 52 minute(s)
Infinity Blade - 1 hour(s) 18 minute(s)
Xcom - 43 minute(s)

힌트

  • Years will be treated as 365 days.
  • Playtime will never be 0 minutes