import java.util.*; public class NotFound { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String[] input = scanner.next().split(""); if(input[0].equals("4") || input[0].equals("5")) { System.out.println("Yes"); } else { System.out.println("No"); } } }