n = int(input()) f = (n == 2) or (n % 4 == 1) print("Yes" if f else "No")