a = int(input()) a *= 2 for i in range(3, 10**5 + 1): if a % i == 0: print("YES") exit() print("NO")