#include using namespace std; using ll = long long; #define fi first #define se second int main(){ int h, m; cin >> h >> m; if(h < 7) cout << "Yes\n"; else if(h > 8) cout << "No\n"; else if(h == 7) cout << (m < 30 ? "Yes\n" : "Late\n"); else cout << (m < 30 ? "Late\n" : "No\n"); return 0; }