import datetime Y,M,D = map(int,input().split("/")) x = datetime.date(Y,M,D) print(x + datetime.timedelta(days=2))