S = input() if S[0] == 4: print("Yes") else: print("No")