calendar = input().split('/') year = int(calendar[0]) month = int(calendar[1]) day = int(calendar[2]) uru = False if year % 4 == 0: uru = True if uru: if year % 100 == 0 and year % 400 != 0: uru = False last_day = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] if day + 2 > last_day[month-1]: if uru and month == 2: if day + 2 > last_day[month-1] + 1: day = (day+2) - (last_day[month-1]+1) month = month + 1 else: day = day + 2 else: if day + 2 > last_day[month-1]: day = (day+2) - last_day[month-1] month = month + 1 else: day = day + 2 else: day = day + 2 if month == 13: month = 1 year = year + 1 year = str(year) month = str(month) day = str(day) res = [] res.append(year) if len(month) < 2: month = '0' + month res.append(month) if len(day) < 2: day = '0' + day res.append(day) print(res[0] + '/' + res[1] + '/' + res[2])