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):
x, y = map(int, input().split())
a = 2 * x - (y / 2)
b = (y / 2) - x

if a.is_integer() and b.is_integer() and ((a >=1 and b >=0) or (a>=0 and b >= 1)):
    print('Yes')
else:
    print('No')

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

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

for a in range(x + 1):
    if 2 * a + 4 * (x - a) == y:
        answer = "Yes"
        break
    else:
        answer ="No"

print(answer)

Solution (Python):

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

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

Solution (Python):
data = [int(i) for i in input().split()]
x = data[0]
y = data[1]


ans = "No"
for turu in range(x + 1):
  feet = 2 * turu + 4 * (x - turu)
  if feet == y:
    ans = "Yes"
    break

print(ans)

Solution (Python):
import sys
import math
def I():return int(sys.stdin.readline().replace("\n",""))
def I2():return map(int,sys.stdin.readline().replace("\n","").split())
def S():return str(sys.stdin.readline().replace("\n",""))
def L():return list(sys.stdin.readline().replace("\n",""))
def Intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def Lx(k):return list(map(lambda x:int(x)*-k,sys.stdin.readline().replace("\n","").split()))

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

Solution (Python):
X, Y = map(int,input().split())
a=[]
for i in range(X+1):
    x = 2*i + 4*(X-i)
    a.append(x)
if Y in a:
    print('Yes')
else:
    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):
    print("Yes")
else:
    print("No")

Solution (Python):


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

exist_flag = False

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

if exist_flag:
  print('Yes')
else:
  print('No')

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

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

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

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

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

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

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

Solution (Python):
def calc(X, Y):
    if Y % 2 == 1:
        return 'No'
    elif Y >= 2 * X and Y <= 4 * X:
        return 'Yes'
    else:
        return 'No'

    

(X, Y) = tuple([int(s) for s in input().split()])
print(calc(X, Y))

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

n=0
for i in range(XY[0]+1):
  if i*2+(XY[0]-i)*4==XY[1]:
    n=1

if n==0:
  print("No")
else:
  print("Yes")

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


A = 2 * X - (Y / 2)

if A.is_integer() and (A >= 0) and (X - A) >= 0:
    print('Yes')

else:
    print('No')

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

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

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

Solution (Python):
def main():
    X,Y = [int(x) for x in input().split()]
    tsuru = 2
    kame = 4
    for i in range(X+1):
        if Y == (X-i)*kame + i*tsuru:
            print('Yes')
            return
    print('No')

if __name__ == '__main__':
    main()

Solution (Python):
def s(a):
	res = 0
	for v in a:
		res += v
	return res

x, y =map(int, input().split())
a = [2]*x

for i in range(x):
	if s(a) == y:
		print("Yes")
		exit()
	a[i] = 4
if s(a) == y:
	print("Yes")
	exit()

print("No")

Solution (Python):


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

i=0
while i<=X:
    KAME=X-i
    TURU=i
    if (KAME*4)+(TURU*2)==Y:
        print("Yes")
        quit()
    i+=1
    
print("No")

Solution (Python):
k = list(map(int, input().split()))
if k[0] * 2 > k[1] or k[0] * 4 < k[1] or k[1] % 2 != 0:
  print("No")
else:
  a = []
  for i in range(k[0] + 1):
    a.append((i, k[0] - i))
  
  for i in a:
    re = i[0] * 2 + i[1] * 4
    if re == k[1]:
      print("Yes")
      break

Solution (Python):



import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    X, Y = i2nn()
    if Y % 2 == 0 and 2 * X <= Y <= 4 * X:
        print('Yes')
    else:
        print('No')
    return

main()

Solution (Python):
x,y=map(int, input().split())
for turu in range(x+1):
  kame=x-turu
  asi=kame*4+turu*2
  if asi == y:
    print('Yes')
    exit()
print('No')

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

Solution (Python):
def resolve():
    x, y = map(int, input().split())
    for t in range(y//4+1):
        for k in range(y//2+1):
            if t*4 + k*2 == y and t+k == x:
                print("Yes")
                return
    print("No")

resolve()

Solution (Python):
X,Y = map(int,input().split())
tsuru = 0
kame = 0
ans = 'No'

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

print(ans)

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

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

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

print(ans)

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

def calculate(x,y):
    a = (4 * x - y) / 2
    b = x - a
    if a < 0:
        print("No")
        return
    if b < 0:
        print("No")
        return

    if float.is_integer(a) and float.is_integer(b):
        print("Yes")
    else:
        print("No")

calculate(X,Y)

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

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

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

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

Solution (Python):
x, y = [int(i) for i in input().split()]
i = 0
ans = "No"
while i <= x:
    if 2 * (x + i) == y:
        ans = "Yes"
        break
    else:
        i += 1

print(ans)

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

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

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

tsuru = ((Y - 2 * X) / 2)
kame = ((4 * X - Y) / 2)

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

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

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

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

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

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

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

Solution (Python):
s = input().split()

x = int(s[0])
y = int(s[1])

answer = "No"

for i in range(0,x + 1):
    if (4 * i) + (2 * (x - i)) == y:
        answer = "Yes"

print(answer)

Solution (Python):


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

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

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

tei=x*2
kou=x*4

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

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

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

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


def judge(a,b):
    if a < 0 or b < 0:
        return "No"
    elif not a.is_integer():
        return "No" 
    elif not b.is_integer():
        return "No" 
    else:
        return "Yes"

print(judge(a,b))

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

if 4 * X < Y or 2 * X > Y:
  print("No")
elif Y % 2 != 0:
  print("No")
else:
  print("Yes")

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

for i in range(x + 1):
    if i * 2 + (x - i) * 4 == y:
        print('Yes')
        exit()
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")
    break
else:
  print("No")

Solution (Python):
import numpy as np
X, Y = list(map(int, input().split()))
k = np.floor((Y / 2.0) - X)
t = np.floor(2*X - (Y / 2.0))
if k + t == X and k >= 0 and t >= 0:
    print('Yes')
else:
    print('No')

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

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

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

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

x = 2*X - Y/2.0
y = -1*X + Y/2.0

if x.is_integer() and y.is_integer() and x >= 0 and y >= 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
X, Y = list(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())

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

Solution (Python):
x, y = map(int, input().split())
a = int(2*x - 0.5*y)
b = int(-x + 0.5*y)

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

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

print('Yes')

Solution (Python):
nums=[int(s) for s in input().split()]

x=nums[0]
y=nums[1]


if y>4*x or y%2==1 or y<2*x:
  print("No")
  
else:
  print("Yes")

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

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

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

Solution (Python):
import sys
def input():
    return sys.stdin.readline()[:-1]


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

    
if __name__ == "__main__":
    main()

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

k = Y-2*X
t = 4*X-Y

if Y%2==0 and k>=0 and t>=0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
import sys
si = sys.stdin.readline


def main():
    l = [int(e) for e in si().split()]
    found = False
    for i in range(l[0]+1):
        legs = i*2+(l[0]-i)*4
        if l[1] == legs:
            print("Yes")
            found = True
            break
    if not found:
        print("No")


if __name__ == '__main__':
    main()

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

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

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

print("No")

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

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

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

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

ans = 'No'
if 2 * x <= y <= 4 * x and y % 2 == 0:
    ans = 'Yes'

print(ans)

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    X, Y = list(map(int, input().split(" ")))

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

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


if __name__ == '__main__':
    main()

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

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

 
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

x, y = MI()
if y % 2 == 1:
    print("No")
    sys.exit()
y = y // 2
if y > x * 2 or y < x:
    print("No")
    sys.exit()
print("Yes")

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

flag = False
for a in range(0, X+1):
    leg = 2 * a + 4 * (X-a)
    if leg == Y:
        print('Yes')
        flag = True

if not flag:
    print('No')

Solution (Python):
x,y = map(int,input().split())
for i in range(x+1):
    kame = i
    tsuru = x-i
    ashi = kame*4 + tsuru*2
    
    if ashi == y:
        print("Yes")
        exit()
print("No")

Solution (Python):
X, Y = map(int, input().split())
Crane, Turtle = 2, 4
for x in range(X+1):
    if Crane*x + Turtle*(X-x) == Y:
        print("Yes")
        exit()
    if Crane*x + Turtle*(X-x) < Y:
        break
print("No")

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

for i in range(X):
  x2 = i
  x4 = X - i
  if ((int(x2*2+x4*4) == Y) or (int(x2*4+x4*2) == Y)):
    print('Yes')
    sys.exit()

print('No')

Solution (Python):
ans="No"
x,y=map(int,input().split())
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())
if x * 4 >= y and y % 2 == 0 and x * 2 <= y:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
x,y = map(int,input().split())
flag=False
if y%2==0:
  b=(y-2*x)//2
  a=x-b
  if a >= 0 and b >=0:
    flag=True
if flag:
  print('Yes')
else:print('No')

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


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

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

for a in range(X+1):
    if 4 * (X - a) == Y - 2*a:
        ans = 'Yes'
        break
        
print(ans)

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


def myfunc(X, Y):
    for tsuru in range(X+1):
        turtle = X - tsuru
        legs = turtle * 4 + tsuru * 2

        if legs == Y:
            return "Yes"

    return "No"

print(myfunc(X,Y))

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

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

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

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

Solution (Python):
import sys

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


for a in range(x + 1):
  if y == 4 * x - 2 * a:
    print('Yes')
    sys.exit()
    
print('No')

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

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

print('No')

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

if y % 2 is not 0:
	print("No")
	exit()

b = y / 2 - x

print("Yes" if b <= x and b >= 0 else "No")

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

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

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

print('No')

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

b = (Y - 2 * X) / 2

if b >= 0 and b.is_integer() and X >= b:

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

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

result = False
for a in range(x+1):
    b = x - a

    if (a*2 + 4*b) == y:
        result = True

if result:
    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:
        print('Yes')
        exit()

print('No')

Solution (Python):
X, Y = map(int,input().split())
A = 2*X - Y/2.
B = Y/2. - X

if A.is_integer() and B.is_integer() and A>=0 and B>=0:
    print("Yes")
else:
    print("No")

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

flg = False
for i in range(x+1):
    if 2*(x+i) == y:
        flg = True
        break

if flg:
    print('Yes')
else:
    print('No')

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

for i in range(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())

flag = False
for turu in range(101):
    for kame in range(101):
        if turu + kame == x and 2 * turu + 4 * kame == y:
            flag = True
            break
print("Yes" if flag == True else "No")

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

Solution (Python):
x, y = map(int,input().split())
flg = False
for i in range(x+1):
    t = i * 2
    k = (x - i) * 4
    if t + k == y:
        flg = True
        break
print('Yes') if flg else print('No')

Solution (Python):
x,y=[int(x) for x in input().split()]
tf=False
for i in range(x+1):
    if i*2+(x-i)*4==y:
        tf=True
        break
print('Yes' if tf else 'No')

Solution (Python):
def main():
    x,y = map(int, input().split())
    a="No"
    if y%2 == 1:
        a="No"
    
     
           
    else:
        for i in range(1,x+1):
            j = x-i
            if 2*i+4*j==y or 4*i+2*j==y:
                a="Yes"
    print(a)
main()

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

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

Solution (Python):
X, Y = map(int, input().split())
from math import floor
def Main(X, Y):
    a = (Y-2*X)/2
    b = (4*X-Y)/2
    
    if a < 0 or b < 0:
        return "No"
    elif (a > 0 and floor(a) == a) or (b > 0 and floor(b) == b):
        return "Yes"
    else:
        return "No"
        
    
res = Main(X, Y)
print(res)

Solution (Python):
import sys

def input():
    return sys.stdin.readline().strip()

def main():
    x, y= map(int, input().split())
    if y % 2 == 1 or 4*x < y or y < 2*x:
        print("No")
        return
    print("Yes")



main()

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

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

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

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

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

crane = 0

flg = False

while X - crane >= 0:
    if 2*crane + 4*(X - crane) == Y:
        flg = True
        break
    crane += 1

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

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

Solution (Python):
x, y = [int(s) for s in input().split(" ")]
yy = y - 2 * x
xx = 4 * x - y

if yy < 0 or xx < 0 or yy % 2 != 0 or xx % 2 != 0:
  print("No")
else:
  print("Yes")

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

Solution (Python):
x, y = map(int, input().split())
for c in range(min(x + 1, 101)):
    if 2 * c + 4 * (x - c) == y:
        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(Y-X*2 >= 0 and 4*X -Y >=0):
    if((Y-2*X)%2 == 0):
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

q, mod = divmod(Y, 2)

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

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

i=0
flag = 0
while(i <= x):
    if(i*2 + (x-i)*4) == y:
        flag = 1
        break
    i+=1
if flag == 1:
    print("Yes")
else:
    print("No")

Solution (Python):

x, y = map(int, input().split())
t = (4*x-y)/2
k = (y-2*x)/2
a = t.is_integer()
b = k.is_integer()
if a == True and b == True and t >= 0 and k >= 0:
    print("Yes")
else:
    print("No")

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

if x*4+1 <= y or x*2-1 >= y:
    print('No')
elif y % 2 == 1:
    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):
x,y = map(int, input().split())

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

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

Solution (Python):
from collections import defaultdict,deque
from sys import stdin,setrecursionlimit
import heapq,bisect,math,itertools,string,queue,datetime,copy
setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inpl(): return list(map(int, stdin.readline().split()))

x,y = inpl()

xx = (4*x-y)
yy = (y-2*x)

if xx >=0 and yy>=0 and xx%2==0 and yy%2==0:
    print('Yes')
else:
    print('No')

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

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

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

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

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

Solution (Python):
import math

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

c = Y / 2 - X
t = X - c


if (c < 0 or t < 0 or c != math.floor(c) or t != math.floor(t)):
    print("No")
else:
    print("Yes")

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

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

Solution (Python):
import sys
import time




import math
start=time.time()
input = sys.stdin.readline
sys.setrecursionlimit(10**8)
inf = 10**18
MOD = 1000000007
ri = lambda : int(input())
rs = lambda : input().strip()
rl = lambda : list(map(int, input().split()))
x,y = rl()
for i in range(x+1):
    if i*2+(x-i)*4==y:
        print("Yes")
        sys.exit()
print("No")

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

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

if a == 0:
    print("No")

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

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

flag = False
for c in range(X+1):
    t = X - c
    if (2*c) + (4*t) == Y:
        flag = True
        break
if flag:
    print('Yes')
else :
    print('No')

Solution (Python):
def main():
  X, Y = map(int, input().split())
  if Y%2 != 0:
    return "No"

  x = -X + Y/2
  y = 2 * X - Y/2

  if x < 0 or y < 0:
    return "No"
  else:
    return "Yes"

print(main())

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

ans = Y - 2 * X
temp1 = ans / 2
temp2 = ans % 2

if ans >= 0 and temp2 == 0 and temp1 <= X:
  print("Yes")
else:
  print("No")

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

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

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

    break
print(ans)

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

kame_num = x
turu_num = x - kame_num

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

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

Solution (Python):
a,b = map(int,input().split())
exist_flg = False
for kame in range(a+1):
  tsuru = a - kame
  if (kame*4+tsuru*2)==b:
    exist_flg = True
    break
if exist_flg:
  print("Yes")
else:
  print("No")

Solution (Python):






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



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

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

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

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

Solution (Python):
X,Y=map(int,input().split())
if Y%2==0 and Y//2-X>=0 and 2*X-Y//2>=0:
    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:
    print('Yes')
    break
  else:
    continue
else:
  print('No')

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

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

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

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

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



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

Solution (Python):
x,y=list(map(int,input().split(" ")))
r="No"
for t in range(x+1):
    if (t*2+(x-t)*4)==y:
        r="Yes"
        break
print(r)