import math def prime_decomposition(N): M = N i = 2 table =[] while i * i <= N: while M % i == 0: M /= i table.append(i) i += 1 if M > 1: table.append(M) return table if __name__ == '__main__': N = int(input()) if len(prime_decomposition(N)) == 1: print('NO') else: print('YES')