import numpy

X, Y = list(map(int, input().split()))

if Y % 2 == 1:

    print("No")

    exit()



nk = (Y-2*X)/2

nt = (4*X-Y)/2

if nk >= 0 and nt >= 0:

    print("Yes")

else:

    print("No")
X, Y = list(map(int, input().split()))

ans = "No"

for a in range(X + 1):

    b = X - a

    if 2 * a + 4 * b == Y:

        ans = "Yes"

print(ans)
import numpy

X, Y = list(map(int, input().split()))
if Y % 2 == 1:
    print("No")
    exit()
nk = (Y - 2 * X) / 2
nt = (4 * X - Y) / 2
if nk >= 0 and nt >= 0:
    print("Yes")
else:
    print("No")

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

-import numpy - -if Y % 2 == 1: -    print("No") -    exit() -nk = (Y - 2 * X) / 2 -nt = (4 * X - Y) / 2 -if nk >= 0 and nt >= 0: -    print("Yes") -else: -    print("No") +ans = "No" +for a in range(X + 1): +    b = X - a +    if 2 * a + 4 * b == Y: +        ans = "Yes" +print(ans)