#include #include using namespace std; static inline constexpr string solve(const uint32_t H, const uint32_t M) { if (H < 7) return "Yes"s; else if (H > 8) return "No"s; else if (H == 7) { if (M < 30) return "Yes"s; else return "Late"s; } else { if (M < 30) return "Late"s; else return "No"s; } } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); uint32_t H, M; cin >> H >> M; cout << solve(H, M) << '\n'; return 0; }