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