Playtime

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

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)

힌트

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