import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int H = Integer.parseInt(scan.next()); int M = Integer.parseInt(scan.next()); scan.close(); if (H < 7 || (H == 7 && M < 30)) { System.out.println("Yes"); } else if (H < 8 || (H == 8 || M < 30)) { System.out.println("Late"); } else { System.out.println("No"); } } }