n=input() ans="No" if int(n[0])==4 or int(n[0])==5:ans="Yes" print(ans)