//四則演算 #pragma GCC target("avx") //並列計算 #pragma GCC optimize("O3") //条件分岐を減らす #pragma GCC optimize("unroll-loops") //浮動小数点演算 #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #include using namespace std; using ll = long long; using ld = long double; using VI = vector; using VL = vector; using VS = vector; template using PQ = priority_queue, greater>; #define FOR(i,a,n) for(int i=(a);i<(n);++i) #define eFOR(i,a,n) for(int i=(a);i<=(n);++i) #define rFOR(i,a,n) for(int i=(n)-1;i>=(a);--i) #define erFOR(i,a,n) for(int i=(n);i>=(a);--i) #define each(i, a) for(auto &i : a) #define SORT(i) sort(i.begin(),i.end()) #define rSORT(i) sort(i.rbegin(),i.rend()) #define fSORT(i,a) sort(i.begin(),i.end(),a) #define all(i) i.begin(),i.end() #define out(y,x) ((y)<0||h<=(y)||(x)<0||w<=(x)) #define line cout << "-----------------------------\n" #define ENDL(i,n) ((i) == (n) - 1 ? "\n" : " ") #define stop system("pause") constexpr ll INF = 1000000000; constexpr ll LLINF = 1LL << 60; constexpr ll mod = 1000000007; constexpr ll MOD = 998244353; constexpr ld eps = 1e-10; constexpr ld pi = 3.1415926535897932; templateinline bool chmax(T& a, const T& b) { if (a < b) { a = b; return true; }return false; } templateinline bool chmin(T& a, const T& b) { if (a > b) { a = b; return true; }return false; } inline void init() { cin.tie(nullptr); cout.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(15); } templateinline istream& operator>>(istream& is, vector& v) { for (auto& a : v)is >> a; return is; } templateinline istream& operator>>(istream& is, deque& v) { for (auto& a : v)is >> a; return is; } templateinline istream& operator>>(istream& is, pair& p) { is >> p.first >> p.second; return is; } templateinline vector vec(size_t a) { return vector(a); } templateinline vector defvec(T def, size_t a) { return vector(a, def); } templateinline auto vec(size_t a, Ts... ts) { return vector(ts...))>(a, vec(ts...)); } templateinline auto defvec(T def, size_t a, Ts... ts) { return vector(def, ts...))>(a, defvec(def, ts...)); } templateinline void print(const T& a) { cout << a << "\n"; } templateinline void print(const T& a, const Ts&... ts) { cout << a << " "; print(ts...); } templateinline void print(const vector& v) { for (int i = 0; i < v.size(); ++i)cout << v[i] << (i == v.size() - 1 ? "\n" : " "); } templateinline void print(const vector>& v) { for (auto& a : v)print(a); } inline string reversed(const string& s) { string t = s; reverse(all(t)); return t; } ll ctod(ll y, ll m, ll d) { // 1・2月 → 前年の13・14月 if (m <= 2) { --y; m += 12; } ll dy = 365 * (y - 1); // 経過年数×365日 ll c = y / 100; ll dl = (y >> 2) - c + (c >> 2); // うるう年分 ll dm = (m * 979 - 1033) >> 5; // 1月1日から m 月1日までの日数 return dy + dl + dm + d - 1; } bool uru(ll y) { if (y % 400 == 0)return true; if (y % 100 == 0)return false; if (y % 4 == 0)return true; return false; } ll month[2][13] = { {0,31,28,31,30,31,30,31,31,30,31,30,31} ,{0,31,29,31,30,31,30,31,31,30,31,30,31} }; void nextday(ll& y, ll& m, ll& d) { if (d == month[uru(y)][m]) { m++; d = 1; } else d++; if (m == 13) { y++; m = 1; } } int main() { init(); string s; cin >> s; ll y = stoll(s.substr(0, 4)); ll m = stoll(s.substr(5, 2)); ll d = stoll(s.substr(8, 2)); nextday(y, m, d); nextday(y, m, d); cout << y << '/'; if (m < 10)cout << 0; cout << m << '/'; if (d < 10)cout << 0; cout << d << "\n"; return 0; }