n = int(input()) if n % 4 == 0: print("NO") elif n == 2: print("NO") else: a = 0 m = int(float(n)**0.5) for i in range(3, m, 2): if n % i == 0: a = 1 break if a == 1: print("YES") else: if n % 2 == 1: print("YES") else: print("NO")