import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.hasNextInt() ? scan.nextInt() : -1; if (a > 599 || a < 100) { System.out.println("入力エラー1"); return; } if (Integer.toString(a).charAt(0) == '4' || Integer.toString(a).charAt(0) == '5') { System.out.println("No"); } else{ System.out.println("Yes"); } } }