N = int(input()) for n in range(2, int(N ** 0.5) + 1): if (N % n == 0) and (n != N // n): print('YES') break else: print('NO')