#include using namespace std; typedef long long ll; int days(int y, int m) { if (m == 2) { if (y % 400 == 0 || y % 100 != 0 && y % 4 == 0) return 29; return 28; } if (m == 4 || m == 6 || m == 9 || m == 11) return 30; return 31; } int main() { int y, m, d; scanf("%d/%d/%d", &y, &m, &d); int day = days(y, m); d += 2; if (d > day) { d -= day; m++; } if (m == 13) { m = 1; y++; } printf("%04d/%02d/%02d\n", y, m, d); return 0; }