#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int H, M; if (!(cin >> H >> M)) return 0; const int start = 7 * 3600 + 30 * 60; // 07:30:00 const int end = 8 * 3600 + 30 * 60; // 08:30:00 const int wake = H * 3600 + M * 60 + 30; // H:M:30 if (wake < start) { cout << "Yes\n"; } else if (wake <= end) { // tức là start <= wake <= end cout << "Late\n"; } else { cout << "No\n"; } return 0; }