import datetime date_A= input() dayA= datetime.datetime.strptime(date_A, '%Y %m %d') delta=datetime.timedelta(days=1) dayB=dayA+delta dayc=(dayB.strftime('%Y %m %d')) d=dayc.split() print(int(d[0]),int(d[1]),int(d[2]))