#include using namespace std; int main() { int h, m; cin >> h >> m; int low = 7 * 60 * 60 + 30 * 60; int high = 8 * 60 * 60 + 30 * 60; int woke = h * 60 * 60 + m * 60 + 30; if (woke < low) { puts("Yes"); } else if (woke < high) { puts("Late"); } else { puts("No"); } return 0; }