// 愚直解 #include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(15); int H, M; cin >> H >> M; string ans; if (H <= 6) { ans = "Yes"; } else if (H == 7) { if (M < 30) { ans = "Yes"; } else { ans = "Late"; } } else if (H == 8) { if (M < 30) { ans = "Late"; } else { ans = "No"; } } else { // 9 <= H ans = "No"; } cout << ans << '\n'; return 0; }