#include using namespace std; #define ll long long int H, M; int main() { cin >> H >> M; if (H <= 6 || (H == 7 && M <= 29)) cout << "Yes" << endl; else if ((H == 7 && M >= 30) || (H == 8 && M <= 29)) cout << "Late" << endl; else cout << "No" << endl; }