#include #include using namespace std; using str = string; using ll = long long; using ld = long double; using u64 = unsigned long long; template using pr = pair; template using vt = vector; template using vvt = vector>; #define ar array #define pb push_back #define fi first #define se second #define all(c) (c).begin(), (c).end() #define len(x) (int)(x).size() #define elif else if #define def function #define F_OR(i, a, b, s) for (int i=(a); (s)>0?i<(b):i>(b); i+=(s)) #define F_OR1(e) F_OR(i, 0, e, 1) #define F_OR2(i, e) F_OR(i, 0, e, 1) #define F_OR3(i, b, e) F_OR(i, b, e, 1) #define F_OR4(i, b, e, s) F_OR(i, b, e, s) #define GET5(a, b, c, d, e, ...) e #define F_ORC(...) GET5(__VA_ARGS__, F_OR4, F_OR3, F_OR2, F_OR1) #define rep(...) F_ORC(__VA_ARGS__)(__VA_ARGS__) #define each(x, a) for (auto& x: a) template constexpr T inf = 0; template <> constexpr int inf = 1'000'000'005; template <> constexpr long long inf = (long long)(inf) * inf * 2; template <> constexpr unsigned int inf = inf; template <> constexpr unsigned long long inf = inf; template <> constexpr __int128 inf<__int128> = __int128(inf) * inf; template <> constexpr double inf = inf; template <> constexpr long double inf = inf; template inline bool ctmax(T &a, const S &b) { return (a < b ? a = b, 1 : 0); } template inline bool ctmin(T &a, const S &b) { return (a > b ? a = b, 1 : 0); } template ostream &operator<<(ostream &os, const pair &p) { os << p.first << " " << p.second; return os; } template istream &operator>>(istream &is, pair &p) { is >> p.first >> p.second; return is; } template ostream &operator<<(ostream &os, const vector &v) { int s = (int)v.size(); for (int i = 0; i < s; i++) os << (i ? " " : "") << v[i]; return os; } template istream &operator>>(istream &is, vector &v) { for (auto &x : v) is >> x; return is; } void read() {} template void read(T &t, U &...u) { cin >> t; read(u...); } void print() { cout << "\n"; } template void print(const T &t, const U &...u) { cout << t; if (sizeof...(u)) cout << sep; print(u...); } void write() { cout << " "; } template void write(const T &t, const U &...u) { cout << t; if (sizeof...(u)) cout << sep; write(u...); } #define Int(...) \ int __VA_ARGS__; \ read(__VA_ARGS__) #define Ll(...) \ long long __VA_ARGS__; \ read(__VA_ARGS__) #define Str(...) \ string __VA_ARGS__; \ read(__VA_ARGS__) #define Vt(type, name, size) \ vector name(size); \ read(name) #define Die(...) \ do { \ print(__VA_ARGS__); \ return 0; \ } while (0) __attribute__((target("popcnt"))) inline int popcnt(const u64 &a) { return _mm_popcnt_u64(a); } inline int lsb(const u64 &a) { return a ? __builtin_ctzll(a) : 64; } inline int ctz(const u64 &a) { return a ? __builtin_ctzll(a) : 64; } inline int msb(const u64 &a) { return a ? 63 - __builtin_clzll(a) : -1; } template inline int gbit(const T &a, int i) { return (a >> i) & 1; } template inline void sbit(T &a, int i, bool b) { if (gbit(a, i) != b) a ^= T(1) << i; } constexpr long long Pw(int n) { return 1LL << n; } constexpr long long Msk(int n) { return (1LL << n) - 1; } signed main(){ cin.tie(0)->sync_with_stdio(0); cin.exceptions(ios::badbit | ios::failbit); auto __solve_tc = [&](auto __tc_num)->int { Int(h, m); int min = h * 60 + m; if (min < 7 * 60 + 30) Die("Yes"); if (min >= 8 * 60 + 30) Die("No"); print("Late"); return 0; }; int __tc_cnt = 1; for(auto __tc_num = 0; __tc_num < __tc_cnt; ++ __tc_num){ __solve_tc(__tc_num); } }