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):
tmp_xy = input().split()
x = int(tmp_xy[0])
y = int(tmp_xy[1])

flg = False
for n_tsuru in range(x + 1):
    n_kame = x - n_tsuru
    if(y == (n_kame * 4) + (n_tsuru * 2)):
        flg = True
        break
if flg:
    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())
cnt = 0
for i in range(X+1):
    if 2 * i + 4 * (X-i) == Y:
        cnt += 1
    else:
        pass
if cnt >= 1:
    print("Yes")
else:
    print("No")

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

Solution (Python):
n,m  = map(int,input().split())
if m%2==1 or m//2<n or m//2-n>n:
    print('No')
    exit()
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())

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

else:
    if y%2!=0:
        print("No")
    else:
        print("Yes")

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

ans = 'No'

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

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

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

Solution (Python):
def solve():
	X, Y = map(int, input().split())
	if Y % 2 != 0:
		return "No"
	turtle = (Y // 2) - X
	if turtle < 0:
		return "No"
	crane = X - turtle
	if crane < 0:
		return "No"
	if crane + turtle == X and 2 * crane + 4 * turtle == Y:
		return "Yes"
	return "No"


def main():
	print(solve())


if __name__ == '__main__':
	main()

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

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

Solution (Python):
kazu, ashi = map(int, input().split())

kame, tsuru, hantei = 0, 0, 0

for i in range(kazu+1):
    kame = i
    tsuru = kazu - i
    if kame * 4 + tsuru * 2 == ashi:
        hantei = 1
        break

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

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

for i in range(0, X+1):
  kame = 2 * i
  ashi = Y - kame
  if ashi % 4 == 0:
    if ashi // 4 == X-i:
      print("Yes")
      exit()

print("No")

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

for i in range(x+1):
  if(x==1 and (y==4 or y==2)):
    judge='Yes'
  if(y%4==0 and y/4==x):
    judge='Yes'
  if(y%2==0 and y/2==x):
    judge='Yes'
  for j in range(x+1-i):
    if((i*2+j*4)==y and i+j==x):
      judge='Yes'
    if((i*4+j*2)==y and i+j==x):
      judge='Yes'
      
if(y%2==1):
  judge='No'

print(judge)

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

def main():
    if 0<=(y/2 -x)<=x:
        if y==0 or x==0:
            return 'No'
        if (y/2 -x)%1==0:
            return('Yes')
        else:
            return('No')
    else:
        return('No')
print(main())

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

Solution (Python):
kazu, ashi = map(int, input().split())
tsuru, kame = 0, 0
hantei = 0

for i in range(kazu+1):
    kame = i
    tsuru = kazu - i
    if kame * 4+ tsuru * 2 == ashi:
        hantei = 1
        break

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

Solution (Python):
input = input()
 
nums = input.split(" ")
 
animals = int(nums[0])
legs = int(nums[1])
 
turu = (4*animals -legs)/2.0
kame = (legs-2*animals)/2.0
 
if turu.is_integer() and kame.is_integer() and turu>=0 and kame>=0:
    print("Yes")
else:
    print("No")

Solution (Python):
input = input()
 
nums = input.split(" ")
 
animals = int(nums[0])
legs = int(nums[1])
 
turu = (4*animals -legs)/2.0
kame = (legs-2*animals)/2.0
 
if turu.is_integer() and kame.is_integer() and turu>=0 and kame>=0:
    print("Yes")
else:
    print("No")

Solution (Python):
input = input()

nums = input.split(" ")

animals = int(nums[0])
legs = int(nums[1])

turu = (4*animals -legs)/2.0
kame = (legs-2*animals)/2.0

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

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

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

Solution (Python):
a=list(map(int,input().split()))
b=((a[1]-2*a[0])/2)
c=-1*((a[1]-4*a[0])/2)
if b%1==0 and c%1==0 and b>=0 and c>=0:
  print('Yes')
else:
  print('No')

Solution (Python):
from fractions import Fraction

a=input()
a=a.split()

X=int(a[0])
Y=int(a[1])

x=Fraction(4*X-Y,2)
y=Fraction(Y-2*X,2)

if x-round(x)==0 and x >= 0:
  if y-round(y)==0 and y >= 0:
    print("Yes")
  else :
    print("No")
else:
  print("No")

Solution (Python):
x, y = map(int, input().split())
flag = False
for i in range(x + 1):
    j = x - i
    if i * 2 + j * 4 == 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 i*2+(X-i)*4 == Y:
    print('Yes')
    exit();
    
print('No')

Solution (Python):
import sys

def Y_N(a,b):
    for i in range(a+1):
        if 2 * (a-i) + 4 * i == b:
            return "Yes"
    return "No"

if __name__ == '__main__':
  input = sys.stdin.readline

  s = input().rstrip()

  ar = list(map(int,s.split()))
  
  print(Y_N(ar[0],ar[1]))

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

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

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


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


else:
        z = x * 4 - y
            
        if z % 2 == 0:
            print("Yes")
                
        else:
            print("No")

Solution (Python):
x, y = map(int, input().split())
n = (4*x - y)/2
m = (y - 2*x)/2

if n >=0 and m >=0:

    if n == int(n) and m == int(m):
      print("Yes")
    else:
      print("No")
else:
    print("No")

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

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

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

Solution (Python):
import sys

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

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

Solution (Python):
import sys

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

if X * 4 < Y or X * 2 > Y:
    print("No")
    sys.exit()

while (1):
    if Y % 4 == 0:
        Y = Y - 4
    elif Y % 2 == 0:
        Y = Y - 2
    else:
        print("No")
        break

    if Y == 0:
        print("Yes")
        break

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

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

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

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

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

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

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

elif y/2<x:
    print ("No")

elif y % 2 == 0:
    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')
elif y > 4*x:
    print('No')
else:
    print('Yes')

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

Solution (Python):


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




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


if a < 0 or b < 0:
    print("No")
    exit()
if a == 0 and b == 0:
    print("No")
    exit()
if a+b != x or 2*a+4*b != y:
    print("No")
    exit()

print("Yes")

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

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

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

Solution (Python):

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


flag=False
for i in range(x+1):
    j=x-i
    foot=i*2+j*4
    if foot==y:
        flag=True
        break
if flag:
    print("Yes")
else:
    print("No")

Solution (Python):
X, Y = map(int, input().split())
      
C=2
T=4
B=(4*X)
A=Y%2
end=False
tiny=False
D=(Y/2)

if D<X:
      print("No")
      tiny=True
if Y > B and tiny == False:
      print("No")
      end=True
      
if end==False and A == 0 and tiny == False:
      print("Yes")
if end==False and A !=0 and tiny == False:
      print("No")

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

Solution (Python):
import sys
i = 0
x, y = input().split()
x, y =  int(x), int(y)

for count in range(0, x):
    i += 4

for count in range(0, x):
    if i > y:
        i -= 2

    if i == y:
        print("Yes")
        sys.exit()

print("No")

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


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

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

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

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

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

print("Yes")

Solution (Python):
def solve(x,y):
    if y%2==0 and x*2 <= y <= x*4:
        return 'Yes'
    else:
        return 'No'
    

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

Solution (Python):
import sys

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

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

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






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

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

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

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

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

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

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

Solution (Python):
X, Y = map(int, input().split())
b = Y & 1 == 0 and X <= Y >> 1 <= X << 1
ans = "Yes" if b else "No"
print(ans)

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

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

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

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

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

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

Solution (Python):
x, y = map(int, input().split())
t = max(0, (y - 2*x)//2)
c = max(0, x - t)
if 4*t + 2*c == y:
  print("Yes")
else:
  print("No")

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

printed = False
for i in range(X + 1):
    a = i * 2
    b = (X - i) * 4

    if a + b == Y:
        print("Yes")
        printed = True
        break

if not printed:
    print("No")

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




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

if 0<=a and 0<=b and 2*a + 4*b == y:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
import math


input = sys.stdin.readline
 

def inp():
    return(int(input()))
def inara():
    return(list(map(int,input().split())))
def insr():
    s = input()
    return(list(s[:len(s) - 1]))
def invr():
    return(map(int,input().split()))



x,y=invr()

for i in range(x+1):
	a=i*2
	b=(x-i)*4
	
	if a+b==y:
		print("Yes")
		exit(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())
print('Yes' if 2 * X <= Y <= 4 * X and Y % 2 == 0 else 'No')

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

crane=(y//2)-x
tort=x-crane

if y%2==0 and crane>=0 and tort>=0:
    print('Yes')
else:
    print('No')

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

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

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

print("No")

Solution (Python):
x,y = map(int,input().split())
for i in range(x+1):
  z = x - i
  if(i*2+z*4 == 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")
        break
else:
    print("No")

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

hontai = int(line[0])
ashi = int(line[1])
flag = "true"

for i in range(hontai+1):
  kame = int(i)
  tsuru = int(hontai-kame)
  if ashi == (4*kame)+(2*tsuru):
    print("Yes")
    flag = "false"
    break

if flag=="true":
  print("No")

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

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

Solution (Python):
x, y = map(int, input().split(" "))
b = (y - 2 * x) / 2

if int(b) == b and b >= 0 and (x - b) >= 0:
  print ("Yes")
else:
  print ("No")

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

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

elif x > 50:
  print("No")
  

else:   
  check = True
  for i in range(x+1):
    if sum([2]*(i) + [4]*(x-i)) == y:
      print("Yes")
      check=False
      break
  if check:
    print("No")

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



main()

Solution (Python):
def main():
    s = list(map(int,input().split()))
    num_animals, foots = s[0], s[1]
    flag = 0
    for i in range(0, num_animals, 1):
        
        i += 1
        i, j = i, num_animals - i
        
        if i * 2 + j * 4 == foots:
            flag += 1
            break
        elif i * 4 + j * 2 == foots:
            flag += 1
            break
    if flag == 1:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Solution (Python):

a,b =  map(int,input().split())

u=0
for k in range(a+1):
  x = a-k

  if k*2+x*4==b:
    print('Yes')
    u+=1
    break

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

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

import sys

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

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

for i in range(0, X+1):
  kame = 2 * i
  ashi = Y - kame
  if ashi % 4 == 0:
    if ashi // 4 == X-i:
      print("Yes")
      exit()

print("No")

Solution (Python):


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

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

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

for x in range(X+1):
    crane_num = x
    turtle_num = X-x
    if 2*crane_num+4*turtle_num==Y:
        flag=True

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

Solution (Python):

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

Solution (Python):
import statistics
import math
import datetime
from collections import Counter
import itertools

def func(xx, yy):
    pass

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

    rr = 4 * x

    print("Yes") if rr >= y and y >= 2 * x and (rr - y) % 2 == 0 else print("No")
        

if __name__ == "__main__":
    main()

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

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

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

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

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):
from sys import stdin
 
input_num = stdin.readline().strip().split(" ")

X = int(input_num[0])
Y = int(input_num[1])
if Y % 2 != 0:
  print("No")
else:
  if X * 4 < Y:
    print("No")
  elif X * 2 > Y:
    print("No")
  else:
    print("Yes")

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

flag = True

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


if flag:
	print("No")

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

Solution (Python):
x, y = map(int, input().split())
print('Yes' if not y & 1 and x <= y//2 <= x * 2 else 'No')

Solution (Python):
x, y = map(int, input().split())
A = (y-2*x)/2
B = x-A
if A>=0 and B>=0 and A.is_integer() and B.is_integer():
    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())
a= 4*x-y
b= y-2*x
if a%2 ==0 and b%2 ==0 and a>=0 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(0)
print('No')

Solution (Python):
n=input()
x,y=n.split()
for c in range(int(x)+1):
  cnt=0
  t=int(x)-c
  asi=2*c+4*t
  if asi==int(y):
    print("Yes")
    cnt=1
    break
if cnt==0:
  print("No")

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

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

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

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

Solution (Python):



def main():
    import sys
    input = sys.stdin.readline

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

    crane = (4 * x) - y
    turtle = y - (2 * x)

    if crane >= 0 and turtle >= 0 and crane % 2 == 0 and turtle % 2 == 0:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

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

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

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


if __name__ == "__main__":
    main()

Solution (Python):
def main():
    import sys
    def input(): return sys.stdin.readline().rstrip()
    x, y = map(int, input().split())
    if y%2 == 1:
        print('No')
    elif 2*x-y//2 < 0 or  y//2 - x < 0:
        print('No')
    else:
        print('Yes')
        
    


if __name__ == '__main__':
    main()

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

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

print(ans)

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

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

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


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

Solution (Python):
from sys import stdin
ans = 'No'
X, Y = [int(_) for _ in stdin.readline().rstrip().split()]
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())
for i in range(x+1):
    if y == i*4 + 2*(x-i):
        print('Yes')
        exit()
print('No')

Solution (Python):
X,Y = map(int,input().split())
asi = 2*X
for i in range(X):
    if asi == Y:
        print("Yes")
        exit()
    else:
        asi += 2
if asi == Y:
    print("Yes")
else:
    print("No")

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

F = False

for i in range(0,X+1):
  J = X - i
  C = 4 * i + 2 * J
  if C == Y:
    F = True
if F: 
  print("Yes")
else:
  print("No")

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

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

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

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

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

Solution (Python):

X,Y = map(int,input().split())
ans = "No"
for a in range(X+1):
  b = X - a
  f = 2 * a + 4 * b
  if f == Y:
    ans = "Yes"
print(ans)

Solution (Python):
n, leg = map(int, input().split())
print(['No','Yes'][not leg%2 and 2*n<=leg<=4*n])

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

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

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

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

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())
if x * 2 <= y <= x * 4 and y % 2 == 0:
    print('Yes')
else:
    print('No')

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

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

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

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

print('Yes' if any(x * 2 + i * 2 == y for i in range(x + 1)) else 'No')

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

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

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


if __name__ == '__main__':
    main()

Solution (Python):
def test(X, Y):
    for a in range(X+1):
        b = X-a
        if a*2+b*4 == Y:
            return 'Yes'
    return 'No'


if __name__ == '__main__':
    X, Y = map(int, input().split())
    print(test(X, Y))

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

vr_total = 4*a
diff = vr_total - b
turu = diff / 2
kame = a -turu
if turu != int(turu):
  print("No")
  exit()
if turu>=0 and kame>=0:
  print("Yes")
else:
  print("No")

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

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

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):
import numpy
X, Y = map(int, input().split())
if Y % 2 == 1:
    print("No")
    exit()

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

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

Solution (Python):
import sys
import numpy as np
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())

def Main():
    x,y = IL()
    a = np.matrix([
        [1,1],
        [2,4]
    ])
    b = np.matrix([
        [x],
        [y]
    ])
    ans = np.linalg.solve(a,b)
    if np.all(0<=ans) and np.all(abs(ans-np.round(ans)<1e-5)):
        print('Yes')
    else:
        print('No')
    return

if __name__=='__main__':
    Main()

Solution (Python):
import sys
import numpy as np
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())

def Main():
    x,y = IL()
    a = np.array([
        [1,1],
        [2,4]
    ])
    b = np.array([
        [x],
        [y]
    ])
    try:
        ans = np.linalg.solve(a,b)
    except:
        exit()
    if np.all(0<=ans) and np.all(abs(ans-np.round(ans)<1e-5)):
        print('Yes')
    else:
        print('No')
    return

if __name__=='__main__':
    Main()

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

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 = [int(x) for x in input().split(" ")]

x = (4*X-Y)/2


y = (-2*X+Y)/2


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

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

Solution (Python):
def main():
    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')
        
if __name__ == '__main__':
    main()

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

if(Y<=4*X and Y%2 == 0 and 2*X <= Y):
    ans = 1
else :
    ans = 0
    
if(ans == 0):
    print('No')
elif(ans == 1):
    print('Yes')

Solution (Python):
def main():
  
  

  
  

  
  
  
  if 'get_ipython' in globals(): 
    
    x, y = 3, 8

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

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

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

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 = list(map(int, input().split()))
for i in range(0,X+1):
    if 2*i + 4*(X-i) == Y:
        print('Yes')
        exit()
print('No')