#include int main() { int H, M; scanf("%d %d", &H, &M); if ((0 <= H && H <= 6) || (H == 7 && M < 30)) { printf("Yes\n"); } else if ((H == 7 && 30 <= M) || (H == 8 && M < 30)) { printf("Late\n"); } else { printf("No\n"); } return 0; }