#include #include using namespace std; int main(void){ //input int H,M; cin >> H >> M; //calc string str; if(H < 7){ str = "Yes"; }else if(H == 7 || H == 8){ if(H == 7){ if(M < 30){ str = "Yes"; }else{ str = "Late"; } }else if(H == 8){ if(M < 30){ str = "Late"; }else{ str = "No"; } } }else{ str = "No"; } //output cout << str << endl; }