#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b; if(a%40&&a%100!=0||a%4000) { c=29; } else { c=28; } if(b1||b3||b5||b7||b8||b10||b12) { cout<<31; } else if(b2) { cout<<c; } else { cout<<30; } return 0; }
Using your lizikid universal account