#include #define mp make_pair using namespace std; using ll = long long; int main() { int h, m; cin >> h >> m; if (h <= 7) { if (m <= 29) cout << "Yes"; else cout << "Late"; } if (h >= 9) cout << "No"; if (h == 8) { if (m <= 29) cout << "Late"; else cout << "No"; } }