a=list(input()) print("Yes" if a[0]=="4" or a[0]=="5" else "No")