def input() gets.chomp end def ii() input().to_i end def li() input().split.map(&:to_i) end s=input() puts(s[0]=="4"||s[0]=="5" ? "Yes" : "No")