10817: D_2

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

编程题:

        今天是2014年3月20日周四,李华同学想知道n天前的日期和星期。请你帮帮他。

Input

输入有多组,每组测试数据有一个正整数n。

Output

输出n天前的日期和星期。(星期用1,2,3,4,5,6,7表示、请同学们放心,年份绝对没有公元前!)

Sample Input Copy

1
2

Sample Output Copy

2014 3 19 3
2014 3 18 2