#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int H,M; cin >> H >> M; if(H==7 && M<30) cout << "Yes"; else if(H<7) cout << "Yes"; else if(H>8) cout << "No"; else if(H==8 && M>=30) cout << "No"; else cout << "Late"; return 0; }