// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input int H, M; cin >> H >> M; // Output int time = 10'000 * H + 100 * M + 30; if (time <= 73'000) cout << "Yes" << endl; else if (time <= 83'000) cout << "Late" << endl; else cout << "No" << endl; }