Start: Jul, 17, 2019 00:00:00
20190717Python程序设计基础培训第三次作业
End: Jul, 21, 2019 00:00:00
Time elapsed:
Time remaining:

Problem_ID: C
Result: Accepted
Time: 53ms
Memory: 25184kB
Author: 13806858827
In contest: 1295

c=input().split()
##print(c)
##print(len(c))
md=[0,31,28,31,30,31,30,31,31,30,31,30,31]
y=int(c[0])
m=int(c[1])
d=int(c[2])
if d!=md[m]: print(y,m,d+1)
else:
    if (y%4==0 and y%100!=0 or y%400==0) and m==2:
       d=d+1
    else:
         d=1
         m=m+1
         if m==13:
             m=1
             y=y+1
    print(y,m,d)