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