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