n=int(input()) c=0 i=2 while i*i<=n: if n%i==0: c+=1 while n%i==0: n//=i i+=1 if n>1: c+=1 print(["No","Yes"][c<=2])