#include<bits/stdc++.h> using namespace std; int main() { int M,D,y,m,d; cin>>M>>D>>y>>m>>d; if(m+d==M+D){ cout<<y+1<<" "<<1<<" "<<1; } else if(d==D){ cout<<y<<" "<<m+1<<" "<<1; } else { cout<<y<<" "<<m<<" "<<d+1; } return 0; }
Using your lizikid universal account