#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { int h, m; cin >> h >> m; if (make_pair(h, m) < make_pair(7, 30)) { cout << "Yes" << endl; } else if (make_pair(h, m) < make_pair(8, 30)) { cout << "Late" << endl; } else { cout << "No" << endl; } }