NEXTDATE

0

0 votes
Problem

Nikhil and Nitesh decided to play a game. Nitesh would spell out a random date in the format dd/mm/yyyy . Your task is to help Nikhil win this game by printing the next date.


Input format:
● First line of input contains T ,the no. of test cases.
● Then T lines follow, each containing the present date in following format dd/mm/yyyy.

Output Format :
● Print the output in a single line in the format dd/mm/yyyy.

Constraints:
● 2<=T<=100
● 1<=dd<=31
● 1<=mm<=12
● 1000<=yyyy<=3000


Sample Input:
3
16/9/2014
5/8/1999
25/11/1005


Sample Output:
17/9/2014
6/8/1999
26/11/1005

Sample Input
3
16/9/2014
5/8/1999
25/11/1005
Sample Output
17/9/2014
6/8/1999
26/11/1005
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?