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



flg = False

for i in range(101):

    for j in range(101):

        if (i * 2) + (j * 4) == y and (i + j) == x:

            print("Yes")

            flg = True

            break

    if flg == True:

        break

else:

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



ans = "No"

for i in range(101):

    for j in range(101):

        if (i * 2) + (j * 4) == y and (i + j) == x:

            ans = "Yes"

print(ans)
x, y = list(map(int, input().split()))
flg = False
for i in range(101):
    for j in range(101):
        if (i * 2) + (j * 4) == y and (i + j) == x:
            print("Yes")
            flg = True
            break
    if flg == True:
        break
else:
    print("No")

x, y = list(map(int, input().split()))
ans = "No"
for i in range(101):
    for j in range(101):
        if (i * 2) + (j * 4) == y and (i + j) == x:
            ans = "Yes"
print(ans)

-flg = False +ans = "No" -            print("Yes") -            flg = True -            break -    if flg == True: -        break -else: -    print("No") +            ans = "Yes" +print(ans)