#include #include #include #include #include #include #include #define pb push_back #define all(x) begin(x),end(x) #define ll long long #define P pair #define lP pait using namespace std; int main() { int y,m,d; char a,b; cin>>y>>a>>m>>b>>d; if((y%4==0 and y%100!=0) or y%400==0){ if(m==1 or m==3 or m==5 or m==7 or m==8){ if(d<10) cout<