• [J] Set Time

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • When Deathmoon start MC game, the system let him choose a time for the first day. So, Deathmoon choose 1970-1-1 for the first day. He like this game very much, so he play it many days. Then he asks you the Nth second is which day? And which year? And which month?

  • 输入
  • Input ends of EOF.
    Each data contains only one integer N (0 <= N <= 1,000,000,000).
  • 输出
  • You should output "year : Y", "month: M" and "day: D" when Y, M and D are answers.
  • 样例输入
  • 1
    86399
    86400
    31536000
    
  • 样例输出
  • year: 1
    month: 1
    day: 1
    year: 1
    month: 1
    day: 1
    year: 1
    month: 1
    day: 2
    year: 2
    month: 13
    day: 366
    
  • 提示
  • 来源
  • Hungar
  • 操作

显示春菜