N = int(input()) A = 0 if N == 1: print("NO") else: for i in range(2,N): if N%i == 0: A = 1 if A == 1: print("YES") else: print("NO")