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