#include using namespace std; int main(){ int M,D; cin >> M >> D; cout << (100 * M + D >= 822 ? 24 : 23) << endl; }