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