#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MEM(a,b) memset((a),(b),sizeof(a)) const LL INF = 1e9 + 7; const int N = 1e5 + 10; int main() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); int h, m; cin >> h >> m; int l = 7 * 60 + 30; int r = 8 * 60 + 30; int cur = h * 60 + m; if (cur < l) puts("Yes"); else if (cur > r) puts("No"); else puts("Late"); return 0; }