import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int m = sc.nextInt(); sc.close(); if (h < 7) { System.out.println("Yes"); } else if (h == 7) { if (m < 30) { System.out.println("Yes"); } else { System.out.println("Late"); } } else if (h == 8) { if (m < 30) { System.out.println("Late"); } else { System.out.println("No"); } } else { System.out.println("No"); } } }