#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; ll y = stoi(s.substr(0, 4)); ll m = stoi(s.substr(5, 2)); ll d = stoi(s.substr(8, 2)); if(is_uruu(y)){ cal[2] = 29; } d += 2; if(d>cal[m]){ d %= cal[m]; m++; } if(m==13){ m = 1; y++; } printf("%04d/%02d/%02d\n", y, m, d); return 0; }