S=input() z=["No","Yes"][S in "104"] print(z)