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