import sys n = int(input()) for i in range(1, int(n**0.5)+1): if n%i == 0 and i != 1 and i != n: for j in range(1, int(i**0.5)+1): if j != 1 and i%j == 0 and j != i: print("YES") sys.exit() print("NO")