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

print(('YNeos'[y%2or y>x*4or y<x*2::2]))
x,y=list(map(int,input().split()))

print(('NYoe s'[(2*x<=y<=4*x)>y%2::2]))
x, y = list(map(int, input().split()))
print(("YNeos"[y % 2 or y > x * 4 or y < x * 2 :: 2]))

x, y = list(map(int, input().split()))
print(("NYoe s"[(2 * x <= y <= 4 * x) > y % 2 :: 2]))

-print(("YNeos"[y % 2 or y > x * 4 or y < x * 2 :: 2])) +print(("NYoe s"[(2 * x <= y <= 4 * x) > y % 2 :: 2]))