Problem:
 Score : 200 points    Problem Statement There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.      Constraints  1 \leq X \leq 100  1 \leq Y \leq 100  All values in input are integers.         Input Input is given from Standard Input in the following format:  X  Y       Output If there is a combination of numbers of cranes and turtles in which the statement is correct, print Yes ; otherwise, print No .        Sample Input 1 3 8      Sample Output 1 Yes  The statement "there are 3 animals in total in the garden, and they have 8 legs in total" is correct if there are two cranes and one turtle. Thus, there is a combination of numbers of cranes and turtles in which the statement is correct.       Sample Input 2 2 100      Sample Output 2 No  There is no combination of numbers of cranes and turtles in which this statement is correct.       Sample Input 3 1 2      Sample Output 3 Yes  We also consider the case in which there are only cranes or only turtles.

Solution (Python):
import sys

(x, y) = map(int, sys.stdin.readline().strip().split())

if y % 2 == 1:
    print('No')
    sys.exit()

b = -x + y/2
a = x - b

if a < 0 or b < 0:
    print('No')
else:
    print('Yes')

"""
a: 鶴の数、b: 亀の数
a + b = x -> 2a + 2b = 2x
2a + 4b = y

より
2b = -2x + y -> b = -x + 1/2y
"""

Solution (Python):
x,y = map(int,input().split())

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

Solution (Python):
x, y = map(int, input().split())

if y >= x*2 and y <= x*4 and y % 2 == 0 and x <= 50:
    answer = 'Yes'
else:
    answer = 'No'

print(answer)

Solution (Python):
X, Y = map(int,input().split())

T = 0
C = 0

if Y > X * 4:
    print("No")

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

Solution (Python):
X,Y = input().split()
X = int(X)
Y = int(Y)
if 4*X < Y or 2*X > Y:
  print('No')
else:
  if Y % 2 != 0:
    print('No')
  else:
    print('Yes')

Solution (Python):
from sys import stdin

a, b = [int(x) for x in stdin.readline().rstrip().split()]
if (a*2<=b and a*4>=b) and b%2==0:
  print("Yes")
else:
  print("No")

Solution (Python):
N, M = map(int,input().split())

x = (4*N-M)/2
y = (M-2*N)/2


if((x>=0)and(y>=0)and(x%1==0)and(y%1==0)):
  print("Yes")
else:
  print("No")

Solution (Python):
import sys
x = input().split()
for n in range(int(x[0])+1):
    if 4*n <= int(x[1]):
        nihon = int(x[1]) - 4*n
        if nihon == 2*(int(x[0]) - n):
            print('Yes')
            sys.exit()
            
print('No')

Solution (Python):
X, Y = map(int, input().split())

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

Solution (Python):

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")

Solution (Python):
x, y = map(int, input().split())

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

Solution (Python):
x, y = map(int, input().split())

a = (4 * x - y) // 2
b = (y - 2 * x) // 2
if 0 != y % 2:
    print("No")
    exit(0)
if 0 <= a and 0 <= b and 1 <= (a + b) and (a + b) <= 100 and (2 * a + 4 * b) <= 100:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):


x, y = map(int, input().split())
k = y - 2 * x
l = 4 * x - y

ans = 'No'

if k % 2 == 0:
    b = k / 2

    if l % 2 == 0:
        a = l / 2

        if a + b == x and a >= 0 and b >= 0:
            ans = 'Yes'


print(ans)

Solution (Python):
x,y = map(int, input().split())

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

Solution (Python):
x, y = map(int, input().split())
ans = 0
for i in range(x + 1):
    num = i * 4 + (x - i) * 2
    if(y == num):
        ans = 1
        break
if(ans == 1):
    print("Yes")
else:
    print("No")

Solution (Python):
X, Y = map(int, input().split())
A = (4*X-Y)/2
B = (Y-2*X)/2
if  A%1 == 0 and X >= abs(A) and A>=0:
  print('Yes')
elif B%1 == 0 and X >= abs(B) and B>=0:
  print('Yes')
else:
  print('No')

Solution (Python):
x,y=map(int,input().split())
ans=0
for i in range(x+1):
  if y==2*i+2*x:
    ans='Yes'
    break
  else:
    ans='No'
print(ans)

Solution (Python):
a,b = map(int,input().split())
if a*4 >=b and a*2 <=b:
    if b%4== 2:
        print('Yes')
    if b%4== 0:
        print('Yes')
    if b%4== 1:
        print('No')
    if b%4 ==3:
        print('No')
else:
    print('No')

Solution (Python):
X,Y = [int(i) for i in input().split()]

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

Solution (Python):
X, Y = map(int, input().split())

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

Solution (Python):
a, b = map(int, raw_input().split())


y2 = b - a * 2
x2 = 4 * a - b

if y2 % 2 == x2 % 2 == 0 and y2 >= 0 and x2 >= 0:
    print 'Yes'
else:
    print 'No'

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

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

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

Solution (Python):
x, y =  map(int, input().split())

max_num = 4 * x
min_num = 2 * x

if y % 2 == 1:
    print('No')
elif (min_num <= y) and (max_num >= y):
    print('Yes')
else:
    print('No')

Solution (Python):
x_y = input()
x_y_list = x_y.split()
x = int(x_y_list[0])
y = int(x_y_list[1])
max_y = x * 4
min_y = x * 2
if y % 2 != 0:
  print("No")
elif y > max_y:
  print("No")
elif y < min_y:
  print("No")
else:
  print("Yes")

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

Solution (Python):
n,m = map(int,input().split())
num_c = (4*n - m)/2
if num_c == int(num_c) and 0 <= num_c <= n:
    print("Yes")
else:
    print("No")

Solution (Python):

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


z = 0

ju = 0
for i in range(x+1):
    
    z = x - i
    
    if i*2 + z*4 == y :
        ju += 1
    else :
        ju += 0

if ju >= 1:
    print("Yes")
else :
    print("No")

Solution (Python):
import sys
X,Y = map(int,input().split())
y = Y / 2
if Y % 2 != 0:
    print("No")
    sys.exit()

for i in range(0,X + 1):
    for j in range(0,X + 1):
        if i + j == X:
            if Y == 2 * i + 4 * j:
                print("Yes")
                sys.exit()
print("No")

Solution (Python):
from numpy.linalg import solve
x,y = map(int,input().split())

left = [[1,1],[2,4]]
right = [x,y]

for val in solve(left,right):
    
    if val < 0 or val % 1 != 0:
        print("No")
        break 
else :print("Yes")

Solution (Python):
a,b =map(int,input().split())
c = 1
for i in range(0,a+1):
    if 2*i+4*(a-i) ==b:
      c = 0
      break
if c ==0:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys
read = sys.stdin.buffer.read
input = sys.stdin.readline
input = sys.stdin.buffer.readline





def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def MF(): return map(float,input().split())
def LI(): return list(map(int,input().split()))
def LF(): return list(map(float,input().split()))
def TI(): return tuple(map(int,input().split()))



def main():
	x,y=MI()
	ans="No"
	if 4*x-y>=0 and -2*x+y>=0 and (4*x-y)%2==0 and (-2*x+y)%2==0:
		ans="Yes"
	print(ans)

if __name__ == "__main__":
	main()

Solution (Python):
X,Y = map(int,input().split())

a = Y/2
b = 2*X
if b>=a and Y%2==0 and X<=a:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys

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

crane_feet = x * 2

if crane_feet == y:
  print('Yes')
  sys.exit()
elif y - crane_feet < 0:
  print('No')
  sys.exit()

diff = y - crane_feet
for i in range(1, diff+1):
  crane_feet -= 2
  if crane_feet < 0:
    break
  
  if crane_feet + i*4 == y:
    print('Yes')
    sys.exit()

print('No')

Solution (Python):
[X, Y] = list(map(int, input().split()))
C = 0
T = 0
A = []
for C in range(X+1):
  T = X - C
  if 2*C + 4*T == Y:
    A = [C, T]
  else:
      continue
if bool(A) == True:
  print("Yes")
else:
  print("No")

Solution (Python):
from sys import stdin

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

Solution (Python):
x,y = map(int, input().split())
if y % 2 == 0:
  y1 = y / 2
  d = y1 - x
  a = d.is_integer()
  if a == 1:
    if x >= d and d >= 0:
      print("Yes")
    else:
      print("No")
  else:
    print("No")
else:
  print("No")

Solution (Python):
alist = list(map(int,input().split()))

cand = []
for i in range(alist[0]+1):
  a = []
  a.append(i)
  a.append(alist[0]-i)
  cand.append(a)

ans = 'No'
for item in cand:
  c = 2 * item[0] + 4 * item[1]
  if c == alist[1]:
    ans = 'Yes'


print(ans)

Solution (Python):
x,y = map(int, input().split())

if 4*x < y:
    print("No")
    exit()

if 2*x == y:
    print("Yes")
    exit()
elif 4*x == y:
    print("Yes")
    exit()

if y % 2 != 0:
    print("No")
    exit()
    
a = 2*x
b = 4*x

if a <= y and b >=y:
    print("Yes")
    exit()

print("No")

Solution (Python):
X,Y = map(int,input().split())
if X*4 < Y or X*2 > Y:
  print("No")
else:
  if Y == X*2:
    print("Yes")
  else:
    if (Y-X*2)%2==0:
      print('Yes')
    elif (Y-X*2)%2!=0:
      print('No')

Solution (Python):
l = list(map(int,input().split()))
X = l[0]
Y = l[1]

a = (Y-2*X)/2
b = (4*X-Y)/2
flag_1 = ((Y - 2*X) % 2 == 0)
flag_2 = ((4*X - Y) % 2 == 0)
flag_3 = ((Y - 2*X) >= 0 and (4*X - Y) >= 0)
flag_4 = not (a == 0 and b == 0)

if (flag_1 and flag_2 and flag_3 and flag_4):
    print("Yes")
else:
    print("No")

Solution (Python):
a=input().split(' ')
b1=int(a[0])
b2=int(a[1])

for i in range(b1+1):
  if 2*i+4*(b1-i)==b2:
    print('Yes')
    exit()
print('No')

Solution (Python):
x,y = map(int,input().split())

if y % 2 == 1:
	print("No")
	exit()

diff = y - x * 2

if diff < 0 or diff // 2 > x:
	print("No")
else:
	print("Yes")

Solution (Python):
x,y=(int(x) for x in input().split())
ans = y / 2 - x
if 0 <= ans <= x and ans.is_integer() == True:
  print('Yes')
else:
  print('No')

Solution (Python):
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()

Solution (Python):
def CraneAndTurtle():

    CraneAndTurtle = list(map(int,input().split()))

    Crane_num = (CraneAndTurtle[1] - 2.*CraneAndTurtle[0])/2.

    Turtle_num = (4.*CraneAndTurtle[0] - CraneAndTurtle[1])/2.

    flag_num_1 = float(float(CraneAndTurtle[1] - 2.*CraneAndTurtle[0])/2.) - int(float(CraneAndTurtle[1] - 2.*CraneAndTurtle[0])/2.)

    flag_num_2 = float(float(4.*CraneAndTurtle[0] - CraneAndTurtle[1])/2.) - int(float(4.*CraneAndTurtle[0] - CraneAndTurtle[1])/2.)

    if (flag_num_1 == 0 or flag_num_2 == 0) and ((0 <= Crane_num and  Crane_num <= CraneAndTurtle[0]) or (0 <= Turtle_num and  Turtle_num <= CraneAndTurtle[0])):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    CraneAndTurtle()

Solution (Python):


Ans = 'No'
X, Y = map(int, input().split())


for i in range(X+1):
    if i * 2 + (X - i) * 4 == Y:
        Ans = 'Yes'

print(Ans)

Solution (Python):


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

mx = x * 4
mi = x * 2

if (y <= mx) and (y >= mi) and (y % 2 == 0):
    print("Yes")
else:
    print("No")

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

x, y= na()

if (4*x-y)%2 == 0 and (4*x-y)//2 >= 0  and (4*x-y)//2 <= x:
  print("Yes")
else:
  print("No")

Solution (Python):
x, y = list(map(int, input().split()))
ok = False
for i in range(x+1):
  if i * 2 + (x-i) * 4 == y:
    ok = True
if ok:
  print("Yes")
else:
  print("No")

Solution (Python):
n,m=(int(x) for x in input().split())
if (4*n-m)%2==0 and 4*n-m>=0 and 2*n-(4*n-m)>=0:
    print('Yes')
else :
    print('No')

Solution (Python):
x,y=input().split()
x=int(x)
y=int(y)
f=0
for i in range(x+1):
  for j in range(x+1):
    if((((2*i)+(4*j))==y)and((i+j)==x)):
      f=1;
      break
if(f==1):
  print("Yes")
else:
  print("No")

Solution (Python):
x,y = map(int,input().split())

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

Solution (Python):
import numpy as np
ans = 'Yes'
x, y = map(int, input().split())
A = np.matrix([[1, 1], [2, 4]])
Y = np.matrix([[x], [y]])
calc = np.array(np.linalg.solve(A,Y))
for i in calc:
  if i[0] < 0 or i[0].is_integer() is False:
    ans = 'No'
    break
print(ans)

Solution (Python):
stdin = input().split(' ')
x = int(stdin[0])
y = int(stdin[1])

if y%2 == 0:
    a = x + x - y/2
    b = y/2-x
    if a >= 0 and b >= 0:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):



ha = input()
kita = ha.split(" ")
x = int(kita[0])
y = int(kita[1])
ifAshi = False

if(x == 1):
    if(y == 2 or y == 4):
        ifAshi = True
if(x*2 == y):
    ifAshi = True
for i in range(x):
        
    if((y - 2*i)%4 == 0):
        if((x-i) == ((y - 2*i)/4)):
            ifAshi = True

if(ifAshi):
    print("Yes")
else:
    print("No")

Solution (Python):
X, Y = map(int,input().split()) 

kame = X
turu = 0


while kame >= 0:
    if 4*kame + 2*turu == Y:
        print("Yes")
        kame = -2
    kame -= 1
    turu += 1

if kame == -1:
    print("No")

Solution (Python):
import math 
x, y = map(int, input().split())

def judge(x_,y_):
    turu = int(2*x_ - (y_/2))
    kame = int((y_/2) - x_)

    if turu < 0 or kame < 0:
        return 'No'

    if (turu + kame == x_ and 2*turu+4*kame == y_):
        return 'Yes'
    return 'No'

print(judge(x,y))

Solution (Python):
X, Y = map(int, input().split())

if 4 * X < Y:
  print("No")
elif Y / 2 < X:
  print("No")
else:
  y = abs(Y - 2 * X)
  x = abs(4 * X - Y)
  if y%2 == 0 and x%2 == 0:
    print("Yes")
  else:
    print("No")

Solution (Python):


def judge(x, y):
    if (x < 0 or x>100):
        return False
    if (y < 0 or y>100):
        return False
    if (x+y == 0):
        return False
    if (y%2):
        return False
    if x < y/4:
        return False
    if x*2 > y:
        return False
    return True

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

Solution (Python):
a,b = map(int, input().split())
i = 0
while i<=a:
  turu = 2*(a-i)
  kame = 4*i
  ans = turu + kame
  if ans == b:
    print('Yes')
    break
  i = i + 1
  
else:
  print('No')

Solution (Python):
i = input()
n = i.split(' ')

x = int(n[0])
y = int(n[1])
even = y % 2 == 0

xt = x * 2
xf = x * 4

if y > (x * 4) or not even:
  print('No')
elif y == 2 or y == 4:
  print('Yes')
elif y >= xt and y <= xf:
  print('Yes')
else:
  print('No')

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

Solution (Python):
x,y=map(int, input().split())
a=False

for i in range(0,x+1):
  if i*2+(x-i)*4==y:
    a=True
    break
    
if a==True:
  print("Yes")
else:
  print("No")

Solution (Python):
X, Y = input().split()
x = int(X)
y = int(Y)
a = (4*x - y) / 2
b = (-2*x + y) / 2
if(a >= 0 and a.is_integer() and b >= 0 and b.is_integer()):
    print("Yes")
else:
    print("No")

Solution (Python):
X,Y = map(int, input().split())
ans = "No"
foots = 2*X
for tsuru in range(X+1):
    if foots == Y:
        ans = "Yes"
    foots += 2
    
    
print(ans)

Solution (Python):
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")

Solution (Python):


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




for a in range(X + 1):
    b = X - a

    if (2 * a + 4 * b) == Y:
        print("Yes")
        exit()

print("No")

Solution (Python):
number = input().split()
number_int = [int(x) for x in number]
sum1 = number_int[0]
sum2 = number_int[1]
answer = 'No'

for i in range(sum1+1):
    temp1 = i * 2
    temp2 = (sum1 - i) * 4
    if temp1 + temp2 == sum2:
        answer = "Yes"
        break

print(answer)

Solution (Python):
x, y = map(int,input().split())
a = y-2*x
if a%2!=0 or a < 0 or a/2>x:
    print("No")
else:
    print("Yes")

Solution (Python):
num = [int(s) for s in input().split()]
t_num = 0
k_num = 0
flag = False
for i in range(num[0]+1):
    t_num = i
    k_num = num[0] - t_num
    tmp = t_num * 2 + k_num * 4
    if tmp == num[1]:
        flag = True
if flag == True:
    print('Yes')
else:
    print('No')

Solution (Python):
x, y = [int(i) for i in input().split()]
a2 = 0
a4 = 0
flag =0

for k in range(x+1):
    a2 = 2*k
    a4 = 4*(x-k)
    y_t = a2 + a4
    
    if y_t == y:
        print('Yes')
        flag = 1

if flag == 0:
    print('No')

Solution (Python):
X,Y = map(int,input().split())
ans = 'No'
for a in range(X+1):
    for b in range(X+1):
        if a + b == X and 2*a + 4*b == Y:
            ans = 'Yes'
print(ans)

Solution (Python):
x,y = map(int,input().split())
maxx = y//2 +1
maxxx = max(x,maxx) + 1
count = 0
for i in range(maxxx):
  for j in range(maxxx):
    if i + j == x and i*2 + j*4 == y:
      count += 1
if count == 0:
  print("No")
else:
  print("Yes")

Solution (Python):
from sys import stdin

x,y=[int(x) for x in stdin.readline().rstrip().split()]

exist=4*x
if 4*x >= y and y >= 2*x and y%2==0:
       print("Yes")
else:
    print("No")

Solution (Python):
x,y=map(int,input().split())

s=x*4

if (s-y)%2==0 and s-y>=0:
    T=(s-y)/2
    K=x-T

    if K>=0 and T>=0:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
import math
X, Y = map(int,input().split())
ans = "No"
for i in range(X+1):
  if(2*X+2*i==Y):
    ans = "Yes"
print(ans)

Solution (Python):
x,y = map(int,input().split())

if 4*x >= y and 2*x <= y and y%2==0:
  print('Yes')
else:
  print('No')

Solution (Python):
X, Y=(int(x) for x in input().split())

if (2*X - Y/2) < 0 or (Y/2 - X) < 0 or Y%2 != 0:
    print('No')
else:
    print('Yes')

Solution (Python):
X,Y=input().split();
X=int(X);
Y=int(Y);
for k in range(X+1):
  if Y==4*k+2*(X-k):
    print("Yes");
    exit();
print("No");

Solution (Python):
X, Y = map(int, input().split())

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

Solution (Python):
x, y =map(int, input().split())


if x* 2 > y:
  print('No')
elif x * 4 < y:
  print('No')
elif y %2!=0:
  print('No')
else:
  print('Yes')

Solution (Python):
X,Y = (int(x) for x in input().split())

A = []

for x in range(0,X+1,1):
    legs = 2 * x + 4 * (X-x)
    if legs == Y:
        A.append([x,X-x])

if len(A) == 0:
    print("No")
else:
    print("Yes")

Solution (Python):
X, Y = map(int, input().split())
for a in range(100):
    for b in range(100):
        if (a * 2) + (b * 4) == Y and a + b == X:
            print("Yes")
            exit(0)
print("No")

Solution (Python):
X, Y = map(int, input().split())

if 4 * X - Y < 0:
        print("No")
        exit()

if (4 * X - Y)  % 2 == 0:
        tsuru = (4 * X - Y) // 2
        if X - tsuru < 0:
                print("No")
                exit()
        kame = X - tsuru
        if kame * 4 + tsuru * 2 == Y:
                print("Yes")
                exit()
        else:
                print("No")
                exit()
else:
        print("No")
        exit()

Solution (Python):
import sys
import itertools
x, y = map(int, input().split())

turtle = [i for i in range(x+1)]
crane = [i for i in range(x+1)]

for t, c in itertools.product(turtle, crane):
    if (4*t + 2*c == y) and (t + c == x):
        print('Yes')
        sys.exit()

print('No')

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

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

if crain < 0 or kame < 0:
    print('No')
    exit()

if crain.is_integer() and crain > 0:
    print('Yes')
    exit()

if kame.is_integer() and kame > 0:
    print('Yes')
    exit()

print('No')

Solution (Python):
x,y = map(int, input().split())
asi = y - (2*x)
if asi % 2 == 1 or asi < 0:
    print('No')
    exit()
t = asi // 2
if x - t < 0:
    print('No')
else:
    print('Yes')

Solution (Python):
x, y = map(int, input().split())

if 2 * x <= y <= 4 * x and y % 2 == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys

def I(): return int(sys.stdin.readline().rstrip())
def LI():return list(map(int,sys.stdin.readline().rstrip().split()))
def LS():return list(sys.stdin.readline().rstrip().split())

def main():
  X,Y = LI()[:]
  

  if ((Y-2*X) % 2) == 0:
    a = (Y-2*X) / 2
    if a<=X and a>=0:
      print('Yes')
      exit()
  
  print('No')

if __name__ == '__main__':
	main()

Solution (Python):
def test(X, Y): 
  x = (4*X - Y) / 2
  y = (Y - 2*X) / 2
  
  if (x >= 0 and x % 1 == 0 and
     y >= 0 and y % 1 == 0):
      print('Yes')
  else:
    print('No')
  
X, Y = input().split()
test(int(X), int(Y))

Solution (Python):
x, y = map(int, input().split())
if y%2 == 0 and 2 <= y/x <= 4:
    print("Yes")
else:
    print("No")

Solution (Python):
x, y = map(int, input().split())



if y%2 == 1:
  print('No')
  exit()


if x*4 < y or x*2 > y:
  print('No')
  exit()


print('Yes')

Solution (Python):
x, y = map(int, input().split())

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

if  a >= 0 and a % 1 == 0 and b >= 0 and b % 1 == 0:
    print("Yes")

else:
    print("No")

Solution (Python):
x, y = map(int,input().split())



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

print('No')

Solution (Python):
x,y=map(int,input().split())

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

if a.is_integer() and b.is_integer():
    if a<0 or b<0:
        print("No")
    else:
        print("Yes")
else:
    print("No")

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

Solution (Python):
x, y = map(int, input().split())

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

Solution (Python):
import math
from collections import defaultdict
ml=lambda:map(int,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:list(input())
ips=lambda:input().split()

"""========main code==============="""

a,b=ml()
legs=0
f=0
for i in range(a+1):
    if (i*2+(a-i)*4)==b:
        f=1

if f:
    print("Yes")
else:
    print("No")

Solution (Python):
X,Y=map(int,input().split())
if Y%2==1:
    print('No')
else:
    if 4*X>=Y>=2*X:
        print('Yes')
    else:
        print('No')

Solution (Python):
x, y = map(int, input().split(" "))
if y < 2 * x or 4 * x < y or y % 2 != 0:
    print("No")
    exit(0)
needed = (y - 2 * x) / 2
if needed > x:
    print("No")
else:
    print("Yes")

Solution (Python):
X, Y = map(int,input().split())
a= (4*X-Y)/2
b= (Y-2*X)/2
c = int(a)
d = int(b)

if a==c and b ==d and a>=0 and b >=0:
    print("Yes")
else:
    print("No")

Solution (Python):
X,Y=map(int,input().split())

if Y>4*X or Y<2*X:
    print('No')
    exit()
else:
    pass

if (Y-2*X)%2==0:
    print('Yes')
else:
    print('No')

Solution (Python):
x, y = map(int, open(0).read().split())
c = ((x * 2) <= y <= (x * 4)) and y % 2 == 0
if c:
    print("Yes")
else:
    print("No")

Solution (Python):

X, Y= map(int, input().split())
if (Y % 2) != 0:
  print('No')
elif (2 * X) > Y :
  print('No')
else:
  if (2 * X - Y /2 ) >= 0:
    print('Yes')
  else:
    print('No')

Solution (Python):
numbers = [int(i) for i in input().split()]
if (4*numbers[0]-numbers[1])%2 == 0 and (4*numbers[0]-numbers[1]) >= 0 and (numbers[1]-2*numbers[0])%2 == 0 and (numbers[1]-2*numbers[0]) >= 0:
    print("Yes")
else:
    print("No")

Solution (Python):
x, y = map(int, input().split())

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

Solution (Python):
X,Y=map(int,input().split())

A=(Y-2*X)/2
B=X-A

if (Y-2*X)%2==0:
    if A>=0 and B>=0 and A+B==X and 4*A+2*B==Y:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
x, y = map(int, input().split())

a=b=0


if x*4<y or x*2>y:
    print('No')
    exit()

if (y-2*x)%2==0:
    n=(y-2*x)/2
    if x-b>=0:
        print('Yes')
else:
    print('No')

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

Solution (Python):
import bisect
import copy
import heapq
import sys
import itertools
import math
import queue
from functools import lru_cache
input = sys.stdin.readline
sys.setrecursionlimit(1000000)
mod = 10 ** 9 + 7 

def read_values(): return map(int, input().split())
def read_index(): return map(lambda x: int(x) - 1, input().split())
def read_list(): return list(read_values())
def read_lists(N): return [read_list() for n in range(N)]


def main():
    X, Y = read_values()
    for a in range(X + 1):
        if Y == a * 2 + (X - a) * 4:
            print("Yes")
            return
    print("No")


if __name__ == "__main__":
    main()

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

y_2x = y - (2 * x)

turtle = y_2x / 2
bird = x - turtle

if turtle >= 0 and bird >= 0 and bird.is_integer() and turtle.is_integer():
    print('Yes')
else:
    print('No')

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
x,y = [int(x) for x in input().split()]
if y % 2 != 0:
    print("No")
else:
    if y >= 2*x and y <= 4*x:
        print("Yes")
    else:
        print("No")

Solution (Python):
wa, num = map(int, input().split())
kame = (num / 2) - wa
turu = wa - kame

if (kame >= 0 and turu >= 0) and (wa == kame + turu) and (num == 2 * turu + 4 * kame) and (
        kame.is_integer() and turu.is_integer()):
    print('Yes')
else:
    print('No')

Solution (Python):
N = input().split()
X = int(N[0])
Y = int(N[1])

flag = False

for i in range(X):
    if flag:
        break

    if (X-i)*2 + i*4 == Y:
        flag = True
    
    if (X-i)*4 + i*2 == Y:
        flag = True

if flag:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
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")

Solution (Python):
x,y=[int(x) for x in input().split()]
if y%2==0 and y>=2*x and y<=4*x: print("Yes")
else: print("No")

Solution (Python):

def main():
    X, Y = map(int, input().split())
    
    
    for x in range(X+1):
        y = X - x
        feet = 4 * x + 2 * y
        if feet == Y:
            print("Yes")
            return

    print("No")

if __name__ == '__main__':
    main()

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

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

Solution (Python):
x,y = map(int,input().split())

ans = "Yes"
if y % 2 != 0:
  ans ="No"
elif y < x * 2:
  ans ="No"
elif (y - (x * 2) ) / 2 > x :
  ans = "No"

print(ans)

Solution (Python):
X, Y = map(int, input().split())

def check():
    for i in range(0, X + 1):
        if i * 2 + (X - i) * 4 == Y:
            return 'Yes'
    return 'No'

print(check())

Solution (Python):
X,Y = map(int, input().split())
answer = []
for i in range(X):
    i += 1
    answer.append(i * 4 + (X - i) * 2)
    answer.append(i * 2 + (X - i) * 4)
if Y in answer:
    print("Yes")
else:
    print("No")

Solution (Python):

X, Y = [int(x) for x in input().strip().split(" ")]

if Y % 2 == 1:
    print("No")
else:
    turtles = (Y - 2 * X) // 2
    cranes = (4 * X - Y) // 2
    if (0 <= turtles <= X) and (0 <= cranes <= X):
        print("Yes")
    else:
        print("No")

Solution (Python):
N, M = map(int,input().split())
crain = (4 * N - M) / 2
t = N - crain
if crain.is_integer() and crain > 0:
  if t.is_integer() and t >= 0:
    print("Yes")
  else:
    print("No")
elif t.is_integer() and t > 0:
  if crain.is_integer() and crain >= 0:
    print("Yes")
  else:
    print("No")
else:
    print('No')

Solution (Python):
X, Y = map(int, input().split())

crain = (4 * X - Y) / 2

if crain.is_integer() and 0 <= crain <= X:
    print("Yes")
else:
    print("No")

Solution (Python):
import os
import numpy as np

if os.path.exists('input.txt'):
    test_mode = True
else:
    test_mode = False

if test_mode:
    f = open('input.txt')
    
def get_input():
    if test_mode:
        return f.readline().rstrip()
    else:
        return input().rstrip()

input_line = get_input().split()
X = int(input_line[0])
Y = int(input_line[1])

kame = float((Y - 2*X)/2)
turu = float(X - kame)

if turu >= 0 and kame >= 0 and turu.is_integer() and kame.is_integer() :
    print('Yes')
else:
    print('No')

if test_mode:
    f.close()

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

for i in range(0, x+1):
    f = 2*i + 4*(x-i)
    if f == y:
        print('Yes')
        break
else:
    print('No')

Solution (Python):
x,y=map(int,input().split())
a=y
a -= 2*x
if a < 0 or a > 2*x or a % 2 == 1:
    print("No")
else:
    print("Yes")

Solution (Python):
c, z = map(int, input().split())
if(c >= z):
    print('No')
    exit()
x = (4 * c - z) / 2
yojo = (4 * c - z) % 2
y = c - x

if(x >= 0 and yojo == 0 and y >= 0):
    print('Yes')
else:
    print('No')

Solution (Python):
X, Y = map(int, input().split())

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

Solution (Python):
x, y = [int(x) for x in input().split()]

found = False

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

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

Solution (Python):
line = input()
line = line.rstrip().split(' ')

total = int(line[0])
total_leg = int(line[1])

kame = (total_leg - total * 2) / 2
tsuru = total - kame

if total_leg % 2 == 1:
    print('No')
elif (0 <= kame and kame <= total) and (0 <= tsuru and tsuru <= total):
    print('Yes')
else:
    print('No')

Solution (Python):
X, Y = map(int, input().split())

max = X * 4

if Y > max:
    print('No')
elif Y % 2 != 0:
    print('No')
else:
    for i in range(2*X, 4*X+1, 2):
        if i == Y:
            print('Yes')
            break
    else:
        print('No')