// 嘘解法 // if 文で H <= 6 としていない #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 (9 <= H) { ans = "No"; } else if (H == 7) { if (M < 30) { ans = "Yes"; } else { ans = "Late"; } } else { if (M < 30) { ans = "Late"; } else { ans = "No"; } } cout << ans << '\n'; return 0; }