Result: Accepted
Time: 99ms
Memory: 24700kB
import datetime
s=list(map(int,input().split()))
y,m,d=s[0],s[1],s[2]
t=datetime.datetime(y,m,d)
j=t+datetime.timedelta(days=1)
j = str(j)
a = j.split()
a = list(map(int,a[0].split("-")))
print(a[0],a[1],a[2])