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

ans = y / 2 - x 

if y % 2 == 0 and 0 <= ans <= x:

    print("Yes")

else:

    print("No")

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

ans = y / 2 - x 

if y % 2 == 1:

    print("No")

elif 0 <= ans <= x:

    print("Yes")

else:

    print("No")

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

x, y = list(map(int, input().split()))
ans = y / 2 - x
if y % 2 == 1:
    print("No")
elif 0 <= ans <= x:
    print("Yes")
else:
    print("No")

-if y % 2 == 0 and 0 <= ans <= x: +if y % 2 == 1: +    print("No") +elif 0 <= ans <= x: