#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> H >> M; int x=3600*H+60*M+30; if(x<7*3600+30*60) cout << "Yes" << endl; else if(x<8*3600+30*60) cout << "Late" << endl; else cout << "No" << endl; return 0; }