s = input() if s[0] in "45": print("Yes") else: print("No")