#include #define mp make_pair using namespace std; using ll = long long; int main() { int h, m; cin >> h >> m; int t = 60 * h + m; if (t <= 449) cout << "Yes"; else if (t >= 510)cout << "No"; else cout << "Late"; }