2158: 昨天是几号

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:11 Solved:8

Description

给你若干个日期,请编程输出这些日期的前一天的日期。

Input

n+1行。
一行是一个整数,表示有n日期。
后面n行是n日期。每行有三个整数,分别表示年,月,日。

Output

n行,每行三个整数,每行有三个整数,分别表示年,月,日。中间用空格隔开。

Sample Input Copy

3
2000 3 30
1997 3 4
2008 7 10

Sample Output Copy

2000 3 29
1997 3 3
2008 7 9

Source/Category