n = int(input())

for i in [0, 2, 5]:
    if i + i == n:
        print("Yes")
        exit()
print("No")