import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); if((s / 100 == 4) || (s / 100 == 5)) { System.out.println("Yes"); }else { System.out.println("No"); } } }