#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include constexpr int MOD{1'000'000'007}; constexpr int MOD2{998'244'353}; constexpr int INF{1'000'000'000}; //1e9 constexpr int NIL{-1}; constexpr long long LINF{1'000'000'000'000'000'000}; // 1e18 constexpr long double EPS{1E-10L}; using namespace std::literals; template bool chmax(T &a, const S &b){ if(a < b){a = b; return true;} return false; } template bool chmin(T &a, const S &b){ if(b < a){a = b; return true;} return false; } template bool inside(T x, T lx, T rx){ //semi-open return (std::ranges::clamp(x, lx, rx-1) == x); } template bool inside(T x, T y, T lx, T rx, T ly, T ry){ return inside(x, lx, rx) && inside(y, ly, ry); } template void print_vec(std::vector &v, std::string sep = " "s, std::string end = "\n"s){ std::ranges::copy(v | std::views::reverse | std::views::drop(1) | std::views::reverse, std::ostream_iterator(std::cout, sep.c_str())); if(!v.empty()) std::cout << v.back(); std::cout << end; } int main(){ std::string ans{"No"s}; int H, M; std::cin >> H >> M; int t{H * 60 + M}; if(t < 8 * 60 + 30) ans = "Late"s; if(t < 7 * 60 + 30) ans = "Yes"s; std::cout << ans << std::endl; return 0; }