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



for a in range(0, 100):

    for b in range(0, 100):

        if (2*a + 4*b) == y:

            if a + b == x:

                print('Yes')

                exit()



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



if y % 2 == 0 and (x * 2 <= y) and (y <= x * 4):

    print('Yes')

else:

    print('No')
x, y = list(map(int, input().split()))
for a in range(0, 100):
    for b in range(0, 100):
        if (2 * a + 4 * b) == y:
            if a + b == x:
                print("Yes")
                exit()
print("No")

x, y = list(map(int, input().split()))
if y % 2 == 0 and (x * 2 <= y) and (y <= x * 4):
    print("Yes")
else:
    print("No")

-for a in range(0, 100): -    for b in range(0, 100): -        if (2 * a + 4 * b) == y: -            if a + b == x: -                print("Yes") -                exit() -print("No") +if y % 2 == 0 and (x * 2 <= y) and (y <= x * 4): +    print("Yes") +else: +    print("No")