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(k**0.5)+1): if j != 1 and i%k == 0: print("YES") sys.exit() print("NO")