def pfact(m): pf = {} for i in range(2,int(m**0.5)+1): while m%i == 0: pf[i] = pf.get(i,0) + 1 m //= i if m>1 : pf[m]=1 return pf n = int(input()) r = pfact(n) if len(r) <= 2: print("Yes") else: print("No")