提示: 欢迎访问OurACM平台。
Problem 2014 The Date

Accept: 242    Submit: 476
Time Limit: 1000 mSec    Memory Limit : 32768 KB

Problem Description

abcdxyzk believes that 2012.12.21 is the doomsday after he watched the movie “2012”. He counts how many days later the doomsday will come! However he doesn’t keep the date in mind!

You are given one integer N, indicating N days later, the doomsday will come, and abcdxyzk wants to know the date now!

Input

There are several test cases.

For each case, only one integer N in a single line , indicating N days later, the doomsday will come. (1<=n<= 1000000)

Output

For each test case, output the date now in format “yyyy-mm-dd”, where “yyyy” is the year, “mm” is the month and “dd” is the day.

Sample Input

1085 1

Sample Output

2010-01-01 2012-12-20

Source

FOJ有奖月赛-2011年03月

Submit  Back  Status  Discuss