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