#include #include using namespace std; using namespace atcoder; using ll=long long; int main() { int m,d; cin>>m>>d; if(m<8)cout<<23<