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