#include using namespace std; int main() { int h, m; cin >> h >> m; int t = h * 60 + m; string ans = "No"; if( t < 7 * 60 + 30 ) ans = "Yes"; else if( t < 8 * 60 + 30 ) ans = "Late"; cout << ans << endl; }