// Validate Input by testlib.h // clang-format off #include using namespace std; using ll = long long; #if __has_include("testlib.h") #include "testlib.h" #else #include "/opt/testlib/testlib.h" #endif // clang-format on int main(int argc, char *argv[]) { // Validate Input registerValidation(argc, argv); int H = inf.readInt(0, 23, "H"); inf.readSpace(); int M = inf.readInt(0, 59, "M"); inf.readEoln(); inf.readEof(); // Solve auto f = [&](int h, int m) -> int { return 60 * h + m; }; int s = f(7, 30); int t = f(8, 30); int T = f(H, M); string ans; if (T < s) { ans = "Yes"; } else if (T < t) { ans = "Late"; } else { ans = "No"; } cout << ans << '\n'; return 0; }