#include using namespace std; typedef long long ll; typedef pair P; typedef pair Q; #define REP(i,n) for(int i=0;i> M >> D; if(M>=9) cout << 24 << endl; else if(M<=7) cout << 23 << endl; else{ if(D>=22) cout << 24 << endl; else cout << 23 << endl; } return 0; }