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