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