#include using namespace std; int main() { int H,M; cin >> H >> M; if(H<7 && M<0) { cout << "Yes" << endl; }else if(H<=8 && H<=30){ cout << "Late" << endl; }else { cout << "No" << endl; } }