#include #include #include using namespace std; using namespace atcoder; using namespace boost::multiprecision; using ll = long long; using mint = modint998244353; #define all(v) v.begin(), v.end() #define rep(a, b) for(long long a = 0; a < (long long)(b); a++) int op(int a, int b) { return min(a, b); } int e() { return 2147483647; } int main() { int H, M; cin >> H >> M; if(H < 7) cout << "Yes" << endl; else if(H == 7 && M < 30) cout << "Yes" << endl; else if(H == 7 && M >= 30) cout << "Late" << endl; else if(H == 8 && M < 30) cout << "Late" << endl; else cout << "No" << endl; }