X,Y = (int(x) for x in input().split())

Flag = False

for A in range(0,X+1):

    for B in range(0,X+1):

        if A+B==X and 2*A+4*B==Y:

            Flag = True

    if Flag:

        break

if Flag:

    print('Yes')

else:

    print('No')
X,Y = (int(x) for x in input().split())

Flag = False

for A in range(0,X+1):

    B = X-A

    if 2*A+4*B==Y:

        Flag = True

        break

print((['No','Yes'][Flag]))
X, Y = (int(x) for x in input().split())
Flag = False
for A in range(0, X + 1):
    for B in range(0, X + 1):
        if A + B == X and 2 * A + 4 * B == Y:
            Flag = True
    if Flag:
        break
if Flag:
    print("Yes")
else:
    print("No")

X, Y = (int(x) for x in input().split())
Flag = False
for A in range(0, X + 1):
    B = X - A
    if 2 * A + 4 * B == Y:
        Flag = True
        break
print((["No", "Yes"][Flag]))

-    for B in range(0, X + 1): -        if A + B == X and 2 * A + 4 * B == Y: -            Flag = True -    if Flag: +    B = X - A +    if 2 * A + 4 * B == Y: +        Flag = True -if Flag: -    print("Yes") -else: -    print("No") +print((["No", "Yes"][Flag]))