#include using namespace std; int main() { int H,M; cin >> H >> M; if(H<=7 && M<=30) { cout << "Yes" << endl; }else if(H<8 && M<30){ cout << "Late" << endl; }else { cout << "No" << endl; } }