#include using namespace std; int main() { string s; cin >> s; int year = stoi(s.substr(0, 4)); int month = stoi(s.substr(5, 2)); int day = stoi(s.substr(8, 2)); bool leap = false; if(year % 4 == 0) { if(year % 100 == 0) { if(year % 400 == 0) { leap = true; } } else leap = true; } vector days = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; if(leap) days[1]++; day += 2; if(day > days[month-1]) { day -= days[month-1]; month++; } if(month == 13) { month = 1; year++; } cout << year << '/' << setw(2) << setfill('0') << month << '/' << setw(2) << setfill('0') << day << '\n'; return 0; }