import sys



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



if X * 4 < Y or X * 2 > Y:

    print("No")

    sys.exit()



while (1):

    if Y % 4 == 0:

        Y = Y - 4

    elif Y % 2 == 0:

        Y = Y - 2

    else:

        print("No")

        break



    if Y == 0:

        print("Yes")

        break

import sys



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



if Y % 2 != 0:

    print("No")

    sys.exit()

else:

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

        for j in range(0, X + 1 - i):

            if i + j == X and (i * 2) + (j * 4) == Y:

                print("Yes")

                sys.exit()

    print("No")
import sys

X, Y = list(map(int, input().split()))
if X * 4 < Y or X * 2 > Y:
    print("No")
    sys.exit()
while 1:
    if Y % 4 == 0:
        Y = Y - 4
    elif Y % 2 == 0:
        Y = Y - 2
    else:
        print("No")
        break
    if Y == 0:
        print("Yes")
        break

import sys

X, Y = list(map(int, input().split()))
if Y % 2 != 0:
    print("No")
    sys.exit()
else:
    for i in range(0, X + 1):
        for j in range(0, X + 1 - i):
            if i + j == X and (i * 2) + (j * 4) == Y:
                print("Yes")
                sys.exit()
    print("No")

-if X * 4 < Y or X * 2 > Y: +if Y % 2 != 0: -while 1: -    if Y % 4 == 0: -        Y = Y - 4 -    elif Y % 2 == 0: -        Y = Y - 2 -    else: -        print("No") -        break -    if Y == 0: -        print("Yes") -        break +else: +    for i in range(0, X + 1): +        for j in range(0, X + 1 - i): +            if i + j == X and (i * 2) + (j * 4) == Y: +                print("Yes") +                sys.exit() +    print("No")