x, y = list(map(int, input().split()))

ans = False

for c in range(x + 1):

    t = x - c

    if c + t == x and 2*c + 4*t == y:

        ans = True

        break

print(('Yes' if ans else 'No'))
x, y = list(map(int, input().split()))

ans = 'No'

for c in range(x + 1):

    t = x - c

    if 2*c + 4*t == y:

        ans = 'Yes'

print(ans)
x, y = list(map(int, input().split()))
ans = False
for c in range(x + 1):
    t = x - c
    if c + t == x and 2 * c + 4 * t == y:
        ans = True
        break
print(("Yes" if ans else "No"))

x, y = list(map(int, input().split()))
ans = "No"
for c in range(x + 1):
    t = x - c
    if 2 * c + 4 * t == y:
        ans = "Yes"
print(ans)

-ans = False +ans = "No" -    if c + t == x and 2 * c + 4 * t == y: -        ans = True -        break -print(("Yes" if ans else "No")) +    if 2 * c + 4 * t == y: +        ans = "Yes" +print(ans)