fac = {} def prime_factorization(n): i = 2 while i * i <= n: while not n % i: fac[i] = fac.get(i, 0) + 1 n //= i i += 1 if n != 1: fac[n] = 1 def main(): n = int(input()) prime_factorization(n) if 2 <= len(fac): print("YES") elif len(fac): k, v = fac.popitem() if 2 < v: print("YES") else: print("NO") else: print("NO") if __name__ == '__main__': main()