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