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