peterverebics/CodeNet_Python_118 huggingface dataset:
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines

def main():
    x,y = map(int, readline().split())

    a = 4 * x - y
    b = y - 2 * x

    if a % 2 == 0 and b % 2 == 0:
        if a >= 0 and b >= 0:
            print("Yes")
        else:
            print("No")
    else:
        print("No")


if __name__ == "__main__":
    main()
import sys
input = sys.stdin.readline

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

for i in range(101):
    n = i
    k = X - i
    if 0 > k or k > 100:
        continue
    if Y == n * 2 + k * 4:
        print('Yes')
        exit()
print('No')
x,y = map(int,input().split())
print('Yes' if x*2 <= y <= x*4 and y % 2 == 0 else 'No')
x, y =map(int, input().split())
if y % 2 == 1:
    print("No")
else:
    y = y / 2
    if  y > x*2 or y < x :
        print("No")
    else:
        print("Yes")
#!/usr/bin/env python3
x, y = map(int, input().split())
for i in range(x+1):
    if 2*i+4*(x-i) == y:
        print("Yes")
        quit()
print('No')
X, Y = [int(i) for i in input().split()]

ans = "No"
for i in range(101):
    if ans != "No":
        break
    for j in range(101):
        if i+j != X:
            continue
        if i*2 + j*4 == Y:
            ans = "Yes"
            break
print(ans)
X, Y = map(int,input().split())

turu=X
kame=0
Flag=False
while turu>=0:
  total=4*turu+2*kame
  if total==Y:
    Flag=True
    break
  else:
    turu+=-1
    kame+=1
print("Yes" if Flag is True else "No")
def main():
    X, Y = map(int, input().split())

    if((4 * X) < Y):
        print("No")
    else:
        turuNum = (Y - 2 * X) / 2
        kameNum = X - turuNum

        if(turuNum.is_integer() and kameNum >= 0 and turuNum >= 0):
            print("Yes")
        else:
            print("No")

if __name__ == "__main__":
    main()
X,Y = map(int,input().split())
if Y%2 == 0 and 2*X<=Y<=4*X:
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())
print('Yes' if sum(2*c + 4*(x - c) == y for c in range(x + 1)) else 'No')
x,y =map(int,input().split())
p=0
for i in range(x+1):
    t=i
    k=x-t
    tashi=2*t
    kashi=4*k
    if tashi+kashi==y:
        p=1
        print('Yes')
        break
if p==0:
    print('No')
X,Y=map(int,input().split())
number=0
for i in range(X+1):
    if 2*i + 4*(X-i) == Y:
        number += 1
    else:
        number += 0
if number > 0:
    print('Yes')
else:
    print('No')
X,Y = (map(int, input().split()))
X2= X*2
num = 0
for i in range(X+1):
    if X2+num == Y:
        print("Yes")
        quit()
    num +=2
print("No")
target = list(map(int, input().split()))

num = target[0]
total = target[1]

for i in range(num + 1):
    tori = i
    kame = (num - i)
    if (tori * 2 + kame * 4) == total:
        print('Yes')
        break
else:
    print('No')
def solve():
    X, Y = map(int, input().split())

    for n_cranes in range(X+1):
        n_turtles = X - n_cranes

        if n_cranes * 4 + n_turtles * 2 == Y:
            return 'Yes'

    return 'No'


def main():
    print(solve())


if __name__ == "__main__":
    main()
import sys

X, Y = [int(n) for n in input().split()]

for a in range(101):
    for b in range(101):
        if a + b == X and 2*a + 4*b == Y:
            print('Yes')
            sys.exit(0)

print('No')
def main():
    x, y = map(int, input().split())
    for i in range(x+1):
        for j in range(x+1):
            if i+j == x and 2*i + 4*j == y:
                print("Yes")
                return
    print("No")


if __name__ == "__main__":
    main()
X, Y = map(int, input().split())
if Y - 2 * X >= 0 and (Y - 2 * X) % 2 == 0 and 4 * X - Y >= 0 and (4 * X - Y) % 2 == 0:
    print("Yes")
else:
    print("No")
ans = 'No'
x, y = map(int, input().split())
for i in range(x+1):
  if (2 * i) + (4 * (x-i)) == y:
    ans = 'Yes'
    break
print(ans)
def main():
    x, y = map(int, input().split())

    for i in range(x+1):
        if 2 * i + 4 * (x - i) == y:
            print('Yes')
            return
    print('No')

if __name__ == '__main__':
    main()
a, b = list(map(int,input().split()))
z= 0
if b% 2!=0:
    print("No")
    quit()
else:
    while a>=0: 
        c = a*2+z*4
        if c ==b:
            print("Yes")
            quit()
        a-=1
        z+=1
print("No")
import sys
X, Y = map(int,input().split())
list1 = []
list2 = []

for x in range(0,101):
  for y in range(0,101):
    list1.append(x+y)
    list2.append(2*x+4*y)


for i in range(len(list1)):
  if list1[i] == X and list2[i] == Y:
    print('Yes')
    sys.exit()
print('No')
x,y = map(int, input().split())
b = (y/2-x)
a = x - b
if 2*a+4*b != y or y%2 or x*2 > y or x*4 < y:
    print("No")
else:
    print("Yes")
x, y = map(int, input().split())
if y%2==0 and 2*x<=y<=4*x:
    print('Yes')
else:
    print('No')
X,Y=map(int,input().split())

for i in range(X+1):
  j=X-i
  if Y==2*i+4*j:
    print("Yes");exit()
print("No")
n, m = map(int,input().split())

if m <= 4*n and m >= 2*n and m%2 == 0 and n <= 50 and n < m:
    print("Yes")
else:
    print("No")
X, Y = 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)
x, y = map(int, input().split())
for i in range(x+1):
  if 2*i + 4*(x-i) == y:
    print('Yes')
    break
else:
  print('No')
x, y = list(map(int, input().split()))

for i in range(x+1):
    j = x - i
    if 2*i + 4*j == y:
        print('Yes')
        break
else:
    print('No')
x,y = map(int,input().split())

tsuru = (4 * x - y) // 2
kame = x - tsuru

if (4 * kame) + (2 * tsuru) == y and kame >= 0 and tsuru >= 0:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())

p = list(range(X*2,X*4+1,2))
b = Y

if b in p:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())
flag = False
for tsuru in range(X+1):
    kame = X - tsuru
    if kame*4 + tsuru*2 == Y:
        flag = True
        break

if flag:
    print('Yes')
else:
    print('No')
import sys
input = sys.stdin.readline

def main():
    X, Y = map(int, input().split())
    tmp = X * 4 - Y
    if tmp%2 != 0:
        print("No")
        return
    turu = tmp // 2
    kame = X - turu
    if turu >= 0 and kame >= 0:
        print("Yes")
        return
    print("No")


if __name__ == "__main__":
    main()
a,f = map(int,input().split(" "))
j = 0
for i in range(a + 1):
  x = a - i
  c = (a - i) * 2 + i * 4
  if c == f:
    print("Yes")
    j = 1
    break
if j == 0:
  print("No")
x,y = map(int, input().split())
ans = 'false'

for i in range(0,x+1):
  if y == 2*i + 4*(x-i):
    ans = 'true'
    break

if ans == 'true':
  print('Yes')
else:
  print('No')
import sys


def log(s):
    # print("| " + str(s), file=sys.stderr)
    pass


def output(x):
    print(x, flush=True)


def input_ints():
    return list(map(int, input().split()))


def main():
    x, y = tuple(input_ints())
    # t + k == x
    # 2t + 4k == y

    r = False
    for t in range(x+1):
        k = x - t
        if 2 * t + 4 * k == y:
            r = True
            break

    print("Yes" if r else "No")

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

if (y < 2*x) or (4*x < y) :
    print('No')
elif (y%2 == 0) :
    print('Yes')
else :
    print('No')
a = list(map(int,input().split()))
if a[1]%2 == 1:
  print('No')
else:
  if a[0]*2<= a[1] and a[1] <= a[0]*4:
    print('Yes')
  else:
    print('No')
import math


X,Y=map(int, input().split())
if math.isclose(-Y/2+2*X, math.ceil(-Y/2+2*X)) and math.isclose(Y/2-X, math.ceil(Y/2-X)):
    if Y//2-X>0 and -Y/2+2*X>0:
        print("Yes")


    elif Y/2-X==0 and -Y/2+2*X>0:
         print("Yes")


    elif Y/2-X>0 and -Y/2+2*X==0:
         print("Yes")

    else:
         print("No")


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

for i in range(X + 1):
    if i * 2 + (X - i) * 4 == Y:
        print('Yes')
        break
else:
    print('No')
x, y = map(int, input().split())

for i in range(x):
    if (y - 2 * i) / 4 == (x - i) or 2 * x == y or 4 * x == y:
        print('Yes')
        exit()
print('No')
X,Y=map(int, input().split())
ok = 0
for i in range(101):
  for j in range(101):
    if (i+j == X) and ((i*2)+(4*j)==Y):
      ok = 1
      break
  if ok == 1:
    break
if ok == 1:
  print("Yes")
else:
  print("No")
x, y = map(int, input().split())

for i in range(x+1):
    if y == i*2 + (x-i)*4:
        print("Yes")
        exit()

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

if y<=x*4 and y>=x*2:
  if ((4*x)-y)%2==0 and (y-(2*x))%2==0:
    print('Yes')
  else:
    print('No')
else:
  print('No')
x,y=map(int,input().split())

if y % 2 == 0 and 2*x <= y <= 4*x:
    print("Yes")
else:
    print("No")
x, y =list(map(int, input().split()))
ans_list = []
for i in range(x+1):
    ans_list.append(2*i+4*(x-i))
if y in ans_list:
    print('Yes')
else:
    print('No')
# coding: utf-8
import sys
# from operator import itemgetter
sysread = sys.stdin.readline
read = sys.stdin.read
sys.setrecursionlimit(10 ** 7)
#from heapq import heappop, heappush
#from collections import defaultdict
# import math
# from itertools import product, accumulate, combinations, product
# import bisect# lower_bound etc
#import numpy as np
# from copy import deepcopy
#from collections import deque
#import numba
#import math

def run():
    X, Y = map(int, input().split())
    if (Y - 2 * X) >= 0 and (Y - 2 * X) % 2 == 0 and 4 * X >= Y:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    run()
x, y = map(int, input().split())

if x * 2 <= y <= x * 4 and y % 2 == 0:
  print("Yes")
else:
  print("No")
animals_and_legs=input()
list=animals_and_legs.split()
animals=int(list[0])
legs=int(list[1])
j=animals
i=0
something=True
while i<=animals:
    if i*4+j*2==legs:
        print("Yes")
        something=False
        break
    i=i+1
    j=j-1
if something is True:
    print("No")
X,Y = map(int,input().split())

if Y%2 != 0:
    print('No')
    exit()

else:
    for a in range(X + 1):
        for b in range(X + 1 - a):
            if 2*a + 4*b == Y and a + b == X:
                print('Yes')
                exit()
            else:
                pass

    print('No')
x,y=map(int,input().split())
if y%2==0 and 2*x<=y<=4*x:
  print('Yes')
else:
  print('No')
X,Y=map(int,input().split())

if Y<=4*X and Y>=2*X and Y%2==0:
    print('Yes')
else:
    print('No')
X, Y = map(int, input().split())
if 2*X <= Y <= 4*X and Y % 2 == 0:
    print("Yes")
else:
    print("No")
X , Y = (int(a) for a in input().split())
a = Y - 2*X
b = 4*X - Y
if a%2 == 0 and b%2 == 0 and a>=0 and b >= 0 :
    print("Yes")
else : print("No")
x, y = map(int, input().split())
count = 0

for a in range(x+1):
  b = x - a
  if y == a * 2 + b * 4:
    count += 1
if count == 0:
  print("No")
else:
  print('Yes')
X,Y = map(int,input().split())

flag = 0
for i in range(X+1):
    for j in range(X - i +1):
        if((2*i) + (4*j) == Y)&(i+j == X):
            flag = 1
if(flag == 1):
    print("Yes")
else:
    print("No")
def main():
    X, Y = map(int, input().split())

    for a in range(X + 1):
        b = X - a
        if 2 * a + 4 * b != Y: continue
        print('Yes')
        return
    print('No')


if __name__ == '__main__':
    main()
x,y=map(int,input().split())
for i in range(x+1):
  if i*2+(x-i)*4==y:
    print('Yes')
    exit()
print('No')
x,y=map(int,input().split())
n=0
for i in range(0,x+1):
    if 2*i+4*(x-i)==y:
        n=n+1
if n>0:
    print("Yes")
else:
    print("No")
# -*- coding: utf-8 -*-
import sys

#S = input()
#N = int(input())
#n = [list(map(int,input().split())) for i in range(N)]
#n, y = map(int, input().split())

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

for i in range(x+1):
    if((i ) * 2 + (x -i) * 4 == y):
        print("Yes")
        sys.exit(0)
print("No")
x,y = map(int,input().split())
ans = 'No'
for a in range(x+1):
    b = x - a
    if a*2 + b*4 == y:
        ans ='Yes'
print(ans)
x, y = map(int, input().split())

for i in range(101):
    for j in range(101):
        if i + j == x and 2 * i + 4 * j == y:
            print('Yes')
            exit()

print('No')
values = input().split()

num_animals = int(values[0])
num_legs = int(values[1])

max_possible_legs = num_animals*4
min_possible_legs = num_animals*2

if num_legs%2 != 0:
    print ("No")

elif (num_legs <= max_possible_legs) and (num_legs >= min_possible_legs):
    print("Yes")

else:
    print("No")
X, Y = [int(_) for _ in input().split()]

for a in range(X+1):
    b = X - a
    if 2*a + 4*b == Y:
        print("Yes")
        exit(0)
print("No")
x,y = map(int,input().split())
if y % 2 == 0 and y <= 4*x and y >= 2*x:
      ans=('Yes')
else :
      ans = ('No')
print(ans)
def resolve():
    x, y = map(int, input().split())
    OK = False
    for i in range(x+1):
        t = i
        k = x-i
        if i*2+k*4 == y:
            OK = True
    print ("Yes") if OK else print("No")

resolve()
x, y = map(int, input().split())
print('Yes' if y <= 4 * x and y >= 2 * x and y % 2 == 0 else 'No')
def solve(X,Y):
  if Y % 2 == 1:
    return False
  if X * 4 < Y:
    return False
  c_legs, t_legs= 2, 4
  for c in range(X + 1):
    legs = c * c_legs + (X - c) * t_legs
    if legs == Y:
      return True
  return False

X, Y = map(int, input().split())
ans = "Yes" if solve(X,Y) else "No"
print(ans)
# coding: utf-8
# Your code here!
i = list(map(int, input().split()))
X=i[0]
Y=i[1]
flag=0

A=2*X
if(A==Y):
    print("Yes")
    flag=1
else:
    for i in range(X):
        A=A+2
        if(A==Y):
            print("Yes")
            flag=1
            break
if(flag==0):
    print("No")
X,Y = map(int,input().split())
if Y % 2 == 0 and Y >= 2*X and Y <= 4*X:
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())

if (x*2 <= y <= x*4) and (0 == y % 2):
    print("Yes")
else:
    print("No")
def turtle(x, y):
    tmp = y - 2 * x
    if tmp >= 0 and tmp % 2 == 0:
        return True
    else:
        return False


def crane(x, y):
    tmp = 4 * x - y
    if tmp >= 0 and tmp % 2 == 0:
        return True
    else:
        return False


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

if turtle(x, y) and crane(x, y):
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())

for x in range(X + 1):
    y = X - x
    if Y == x * 4 + y * 2:
        print('Yes')
        exit()
print('No')
X, Y = list(map(int, input().split()))

if (Y - 2 * X) % 2 > 0:
    print('No')
    exit()

b = (Y - 2 * X) / 2
a = X - b

if b >= 0 and a >= 0:
    print('Yes')
else:
    print('No')
## coding: UTF-8
X, Y = map(int,input().split())


ans = 'Yes'

if(Y % 2 != 0):
    ans = 'No'

a = 2*X
b = 4*X
if(Y < a):
    ans = 'No'
if(Y > b):
    ans = 'No'
print(ans)
x,y = map(int, input().split())

all_kame = y - 2*x
#print(type(all_kame))
if all_kame < 0:
    print("No")
    
elif all_kame == 0:
    print("Yes")
    
else:
    for i in range(x+1):
        if all_kame - 2*(x-i) ==0:
            print("Yes")
            exit()
    print("No")
x,y=list(map(int,input().split()))

ans=4*x-y
if ans%2==0 and ans>=0 and x-(ans/2)>=0 :print("Yes")
else:print("No")
X, Y = map(int, input().split())
flag = False
for x in range(X+1):
    kame = x
    turu = X - x

    if 4 * kame + 2 * turu == Y:
        flag = True

if flag:
    print('Yes')
else:
    print('No')
import sys
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))

x,y = Mi()
if y%2 == 1:
  print('No')
  exit(0)
  
y = y//2

if x <= y <= 2*x:
  print('Yes')
else:
  print('No')
x,y = map(int,input().split())
k = "No"
for i in range(x+1):
  b=x-i
  if (b*4)+(i*2)==y:
    k="Yes"
print(k)
x, y = map(int, input().split())

for t in range(0, x+1):
   k = x - t
   if t * 2 + k * 4 == y:
      print('Yes')
      exit()

print('No')
X, Y = [int(x) for x in input().split()]

if X * 2 > Y or X * 4 < Y:
    print('No')
else:
    t = Y - X * 2
    if t % 2 == 0:
        print('Yes')
    else:
        print('No')
i=(input().split())
x=int(i[0])
y=int(i[1])

a=(4*x-y)/2
b=(y-2*x)/2

if a.is_integer() and b.is_integer() and a>=0 and b>=0:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())
print('Yes' if 2 * X <= Y <= 4 * X and not Y % 2 else 'No')
X,Y = map(int,input().split())
for i in range(X+1):
    if i*2+(X-i)*4==Y :
        print('Yes')
        exit()
print('No')
X, Y = map(int, input().split())

for a in range(X + 1):
    b = X - a
    if b >= 0 and 2 * a + 4 * b == Y:
        ans = 'Yes'
        break
else:
    ans = 'No'
print(ans)
x,y = map(int,input().split())

ck = 0
for i in range(x+1):
  if 2 * i + 4 * (x-i) == y:
    ck = 1
    break

print('Yes' if ck else 'No')
x,y = list(map(int,input().split()))

if ((4 * x) - y) % 2 == 0 and y >= 2 * x and  y <= 4 * x:
  print('Yes')
else:
  print('No')
x,y = map(int, input().split())
if y%2 == 1:
    print('No')
elif 2*x<=y<=4*x:
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())

leg_max = 4 * x
leg_min = 2 * x
if leg_min > y or leg_max < y:
    print('No')
else:
    if y % 2 == 1:
        print('No')
    else:
        print('Yes')
x, y = map(int, input().split())
a = 0
flag = 1
while a <= 100:
    b = x-a
    if b >= 0 and 2*a + 4*b == y:
        print("Yes")
        flag = 0
        break
    a+=1
if flag:
    print("No")
X, Y = map(int, input().split())

if Y%2 != 0:
    print("No")
else:
    flag = False
    for x in range(1, X+1):
        leg1 = x*2 + (X-x)*4
        leg2 = x*4 + (X-x)*2
        if leg1 == Y or leg2 == Y:
            flag = True
            break
    if flag:
        print("Yes")
    else:
        print("No")
x, y = [int(e) for e in input().split()]

ans = 'No'

for i in range(x+1):
    if 4*x - 2*i == y:
        ans='Yes'
        break
print(ans)
X, Y = [int(n) for n in input().split()]
ans = 'No'
for i in range(X+1):
    for j in range(X+1):
        if i+j == X and 2*i+4*j == Y:
            ans = 'Yes'
            break
print(ans)
X, Y = map(int, input().split())

y_min, y_max = 2 * X, 4*X

ans = "No"

if (y_min <= Y <= y_max) and (Y%2 == 0):
    ans = "Yes"

print(ans)
x, y = map(int, input().split())
if 2 * x <= y and y <= 4 * x and y % 2 == 0:
  print("Yes")
else:
  print("No")
x, y = list(map(int, input().split()))
for i in range(x+1):
    if 2*i + 4*(x-i) == y:
        print('Yes')
        exit()
print('No')
x, y = map(int, input().split())

for i in range(x+1):
    z = y - i*2 - (x-i)*4
    if z == 0:
        print('Yes')
        exit()
print('No')
x,y = map(int, input().split())
ans='No'
if y>x*4:
    ans='No'
elif y<x*2:
    ans='No'
else:
    for i in range(x+1):
        if y==i*2+(x-i)*4:
            ans='Yes'

print(ans)
X , Y = map(int,input().split())

a = 0
ans = "No"

for a in range(0,X+1):
	if (a * 2)+((X-a) * 4)==Y:
		ans = "Yes"
print(ans)
x,y = map(int, input().split())
count = 0

if y >= 2*x and y <= 4*x and y % 2 == 0:
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())

for c in range(x + 1):
    t = x - c
    if c * 2 + t * 4 == y:
        print("Yes")
        exit()

print("No")
x,y = map(int,input().split())
for i in range(x+1):
    if 2*i + 4*(x-i) == y:
        print('Yes')
        exit()
print('No')
x,y=map(int,input().split())
for i in range(x):
    if 2*i + 4*(x-i)==y:
        print('Yes')
        exit()
if 2*x ==y:
    print('Yes')
    exit()
print('No')
x, y = map(int, input().split())
a = 0
for i in list(range(0, 51)):
    for m in list(range(0, 26)):
        if i * 2 + m * 4 == y and i + m == x:
            a += 1
if 50 < x:
    a = 0
if a == 1:
    print('Yes')
else:
    print('No')
x,y = list(map(int,input().split()))
if y%2==0:
	y = y//2
	t = y-x
	c = x-t
	if c>=0 and t>=0 and c+t==x and c+2*t==y:
		print("Yes")
	else:
		print("No")
else:
	print("No")
X, Y = map(int, input().split())
if 4*X-Y >= 0 and Y-2*X >= 0 and (4*X-Y)%2==0:
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())
for bird in range(101):
    for turtle in range(101):
        if bird + turtle == x and 2*bird + 4*turtle == y:
            print('Yes')
            exit()

print('No')
def iput(): return int(input())
def mput(): return map(int, input().split())
def lput(): return list(map(int, input().split()))

def solve():
    x, y = mput()
    hoge = (x * 4 - y) / 2
    if hoge % 1 == 0 and x >= hoge >= 0:
        print("Yes")
    else:
        print("No")
    return 0

if __name__ == "__main__":
    solve()
a,b = map(int, input().split())
if b%2==0 and b in range(a*2, a*4+1):
    print('Yes')
else:
    print('No')
X,Y=map(int,input().split())
if(Y%2==0 and X*4>=Y and X*2<=Y):
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())
count = 0
for c in range(x + 1):
    for t in range(x + 1):
        if c + t == x and c * 4 + t * 2 == y:
            count += 1

if count > 0:
    print('Yes')
else:
    print('No')
X, Y = [int(_) for _ in input().split()]

a_div = ((4*X-Y)/2)
a_mod = ((4*X-Y)%2)
b_div = ((Y-2*X)/2)
b_mod = ((Y-2*X)%2)

"""
print(a_div)
print(b_div)
print(a_mod)
print(b_mod)
"""

if( (a_div >= 0 and a_mod == 0) and (b_div >= 0 and b_mod == 0)):
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())
if y in range(x*2, x*4+1, 2):
  print("Yes")
else:
  print("No")
x,y = map(int, input().split())
a = 0
b = 0
flag = True
while flag:
    for a in range(x+1):
        for b in range(x+1):
            if x - a == b and y - 2*a == 4*b:
                flag = False
                break
            else:
                continue
    break

if flag:
    print("No")
else:
    print("Yes")
X,Y = map(int,input().split())

for i in range(X+1):
	if i*2 + (X-i)*4 == Y:
		print("Yes")
		exit()

print("No")
n, legs= map(int, input().split(" "))

x = (legs - 2*n)/2
y = (4*n - legs)/2

if x%1==0 and y%1==0 and (x>=0 and y>=0):
  print('Yes')
else:
  print('No')
import sys
sys.setrecursionlimit(10**9)

INF = 10**20
def main():
    X,Y = map(int,input().split())
    print("Yes" if 2*X <= Y <= 4*X and Y % 2 == 0 else "No")


if __name__ == "__main__":
  main()
X, Y = map(int, input().split())
if X * 2 <= Y and Y <= X * 4 and Y % 2 == 0:
    print("Yes")
else:
    print("No")
x, y = map(int,input().split())
if x*4 < y:
    print("No")
elif y % 2 ==1:
    print("No")
elif x*2 > y:
    print("No")
else:
    y = y / 2
    if x <= y <= x*2:
        print("Yes")
    else:
        print("No")
a = list(map(int, input().split()))
if a[1] % 2 == 0 and a[1] // 2 >= a[0] and a[1] // 2 <= 2 * a[0]:
  print("Yes")
else:
  print("No")
X,Y=map(int, input().split())
turu=0
kame=0
ans="No"
for i in range(X+1):
    turu=i
    kame=X-i
    if turu*2+kame*4==Y:
        ans="Yes"
        break
print(ans)
a,b = list(map(int,input().split()))
if a*2 <= b <= a*4 and b%2 == 0:
  print("Yes")
else:
  print("No")
X, Y = map(int, input().split(' '))

if Y % 2 == 0 and X * 2 <= Y <= X * 4:
    print('Yes')
else:
    print('No')
X, Y = map(int, input().split())

for x in range(300):
    for y in range(300):
        if x+y==X and 2*x+4*y==Y:
            print("Yes")
            exit()
print("No")
def main():
    x, y = map(int, input().split())

    for i in range(x+1):
        if i*4 + (x - i)*2 == y:
            print('Yes')
            return

    print('No')


if __name__ == '__main__':
    main()
x, y = list(map(int, input().split()))

if (x*2 <= y) and (x*4 >= y) and (y%2 == 0) :
  print("Yes")
else :
  print("No")
x, y = map(int, input().split())
for i in range(x+1):
    if y == i*4 + 2*(x-i):
        print('Yes')
        exit()
print('No')
X, Y = map(int, input().split())
if X*2 <= Y and X*4 >= Y and Y % 2 == 0:
    print('Yes')
else:
    print('No')
a, b = map(int, input().split())
det = b - 2 * a
if det >= 0 and det % 2 == 0 and det / 2 <= a:
    print("Yes")
else:
    print("No")
x,y = map(int, input().split())
if y % 2 == 1:
    print("No")
elif 2 * x <= y <= 4 * x:
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())
mn = x * 2
mx = x * 4
if y % 2 != 0:
    print('No')
elif y >= mn and y <= mx:
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())

ans = any(2 * i + 4 * (x - i) == y for i in range(x + 1))
print('Yes' if ans else 'No')
X, Y = map(int, input().split())

if Y%2 == 0 and 2*X <= Y <= 4*X:
    print("Yes")
else:
    print("No")