import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println(s.substring(0, 1).equals("4") || s.substring(0, 1).equals("5") ? "Yes" : "No"); } }