#include using namespace std; int main(){ string S; cin>>S; int uru=0; int YY=(S.at(0)-'0')*1000; YY+=(S.at(1)-'0')*100; YY+=(S.at(2)-'0')*10; YY+=(S.at(3)-'0'); int MM=(S.at(5)-'0')*10; MM+=S.at(6)-'0'; int DD=(S.at(8)-'0')*10; DD+=S.at(9)-'0'; //cout<29){ cout<28){ cout<31){ DD-=31; MM=1; YY++; cout<31)){ cout<30)){ cout<