#include using namespace std; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll mod=998244353; ld inf=10000999999999900; int main(){ ll h,m; cin >> h>>m; if (h<7||h>=9) { if (h<7) { cout << "Yes"<< endl; }else{ cout << "No" << endl; } }else if (h==7) { if (m<30) { cout << "Yes" << endl; }else{ cout << "Late" << endl; } }else{ if (m<30) { cout << "Late" << endl; }else{ cout << "No" << endl; } } }