def main():

  c = eval(input())

  c = c.split(' ')

  x = int(c[0])

  y = int(c[1])



  for i in range(0, 100):

    turu = i * 2

    for j in range(0, 100):

      kame = j * 4

      if turu + kame == y and i + j == x:

        print('Yes')

        return

  print('No')

  

if __name__ == "__main__":

  main()
c = eval(input())

c = c.split(' ')

x = int(c[0])

y = int(c[1])

sa = 4 * x -y

if sa % 2 == 0 and x*2 <= y and x*4>=y:

  print('Yes')

else:

  print('No')
def main():
    c = eval(input())
    c = c.split(" ")
    x = int(c[0])
    y = int(c[1])
    for i in range(0, 100):
        turu = i * 2
        for j in range(0, 100):
            kame = j * 4
            if turu + kame == y and i + j == x:
                print("Yes")
                return
    print("No")


if __name__ == "__main__":
    main()

c = eval(input())
c = c.split(" ")
x = int(c[0])
y = int(c[1])
sa = 4 * x - y
if sa % 2 == 0 and x * 2 <= y and x * 4 >= y:
    print("Yes")
else:
    print("No")

-def main(): -    c = eval(input()) -    c = c.split(" ") -    x = int(c[0]) -    y = int(c[1]) -    for i in range(0, 100): -        turu = i * 2 -        for j in range(0, 100): -            kame = j * 4 -            if turu + kame == y and i + j == x: -                print("Yes") -                return +c = eval(input()) +c = c.split(" ") +x = int(c[0]) +y = int(c[1]) +sa = 4 * x - y +if sa % 2 == 0 and x * 2 <= y and x * 4 >= y: +    print("Yes") +else: - - -if __name__ == "__main__": -    main()