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

ans = 'No'

for a in range(x+1):

    if 2*a + 4*(x-a) == y:

        ans = 'Yes'

        break

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

ans = 'No'

for a in range(x+1):

    if 4*x-y == 2*a:

        ans = 'Yes'

        break

print(ans)

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

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

-    if 2 * a + 4 * (x - a) == y: +    if 4 * x - y == 2 * a: