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=[int(i) for i in input().split()]
ans=0
for turu in range(x+1):
  kame=x-turu
  if turu*2+kame*4==y:
    ans=1
if ans==1:
  print("Yes")
else:
  print("No")

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

flg = False
for c in range(x+1):
    t = x-c
    flg |= y == (2 * c + 4 * t)

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

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

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

for i in range(x+1):
    for j in range(x+1):
        if x == (i+j) and y == (2*i + 4*j):
            print('Yes')
            flg = 0
            sys.exit()
        else:
            flg = 1
if flg:
    print('No')

Solution (Python):
X, Y= input().split()
IX = int(X)
IY = int(Y)
C = 2
T = 4
i = 0

while i <= IX:
    

    
    if ((C*i) + (T*(IX-i))) == IY:
        print('Yes')
        break
    elif i == IX:
        print('No')
        break
    else:
        i = i + 1

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

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

if bx2 >= 0 and bx2 % 2 == 0 and a >=0:
    print ('Yes')
else:
    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())
ans=0
for n in range(x+1):
  if n*2+(x-n)*4==y:
    ans=1
    break
if ans==1:
  print('Yes')
else:
  print('No')

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

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

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

    print(str)

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

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

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

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

Solution (Python):
x, y = [int(i) for i in input().split()]
if y % 2 == 0 and y <= x*4 and 2*x <= y:
  print('Yes')
else:
  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):
X,Y = map(int,input().split())

turtle_leg = 4
crane_leg = 2

for i in range(X+1):
  if Y == turtle_leg*i+crane_leg*(X-i):
    print ("Yes")
    break
  if i==X:
    print ("No")
    break

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

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


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

Solution (Python):
X, Y = map(int,input().split())
ans = 0
for i in range(X+1):
  if 2 * i + 4 * (X - i) == Y:
    ans += 1

print( "Yes" if ans > 0 else "No")

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

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


if __name__ == "__main__":
    main()

Solution (Python):
x,y=map(int,input().split());print('NYoe s'[x*2<=~y%2*y<=x*4::2])

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

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

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

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


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

print(ans)

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

Solution (Python):
x, y = map(int, input().split())
print("YNeos"[1 - (x * 2 <= y <= x * 4 and y % 2 == 0)::2])

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

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

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

if __name__ == "__main__":
    sol()

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

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

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

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

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

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

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

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

Solution (Python):
x, y = (int(a) for a in input().split())
foot = 0
y_tmp = y
y_tmp2 = y

for i in range(x):
    y_tmp -= 2 * i + 4 * (x - i)
    y_tmp2 -= 4 * i + 2 * (x - i)
    if y_tmp == 0 or y_tmp2 == 0:
        print('Yes')
        exit()
    else:
        y_tmp = y
        y_tmp2 = y

print('No')

Solution (Python):
x, y = [int(n) for n in input().split(' ')]
crane_cnt = 0
found = False
while crane_cnt <= x:
    turtle_cnt = x - crane_cnt
    if (crane_cnt * 2 + turtle_cnt * 4) == y:
        found = True
        break
    crane_cnt += 1
print('Yes' if found else 'No')

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

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

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

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

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

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

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

Solution (Python):

import sys
from itertools import chain






YES = "Yes"  
NO = "No"  


def solve(X: int, Y: int):
    if Y % 2 == 1:
        return NO
    if Y > X * 4:
        return NO
    if Y < X * 2:
        return NO
    return YES


def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    X = int(next(tokens))  
    Y = int(next(tokens))  
    answer = solve(X, Y)
    print(answer)


if __name__ == "__main__":
    main()

Solution (Python):
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

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

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

flg = -1

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

if flg == 1:
    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')
    break
else:
  print('No')

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

Solution (Python):

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

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

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

ans = 'No'

for i in range(x+1):
    for j in range(y+1):
        if i + j > x:
            continue

        if i*2 + j*4 == y and i+j == x:
            ans = 'Yes'

print(ans)

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

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

check = False
for i in range(0,X+1):
  for j in range(0,X+1):
    if i + j == X and 2*i + 4*j == Y:
      check = True
      
if check:
  print("Yes")
else:
  print("No")

Solution (Python):
num, leg = map(int, input().split())

ans = "No"
for i in range(num+1):
    leg2 = leg - 4 * i
    if leg2 % 2 == 0 and i + leg2 / 2 == num:
        ans = "Yes"

print(ans)

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

for i in range(X+1):
  crane = (i)
  turtle = X-crane

  if crane*2 + turtle*4 == Y:
    print('Yes')
    break
  elif i == X:
    print('No')

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

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

r = 'No'
if Y % 2 == 0:
	for n in range(X + 1):
		cn = n
		tn = X - cn
		if cn * 2 + tn * 4 == Y:
			r = 'Yes'
			break

print(r)

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

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

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

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

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

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

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

turu = 4*X-Y
kame = Y-2*X

if turu % 2 == 0 and turu >= 0 and kame % 2 == 0 and kame >= 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()
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(0)
print('No')

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

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

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

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

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

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

Solution (Python):
a,b = map(int,input().split())
c="入力が間違っています。"
d="鶴が"
e="匹で、亀が"
f="匹です。"
 
k=b//2-a
t=2*a-b//2
if k<0 or t<0 or b%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):
r=input().split()
X=int(r[0])
Y=int(r[1])
ans=0
for i in range(X+1):
    if 2*i==4*X-Y:
        print("Yes")
        ans+=1
        break
if ans==0:
    print("No")

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

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

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

Solution (Python):

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

bool = False
for c in range(0, 101):
    for t in range(0, 101):
        if c + t == x and 2*t + 4*c == y:
            bool = True
            break
            
print('Yes' if bool else 'No')

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

turu = 2*x - 0.5*y
kame = x - turu

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

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

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

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

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

Solution (Python):
x,y=map(int,input().split())
if y%2==1:
  print('No')
elif y>=2*x 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):
    for j in range (X-i+1):
        if i*2 + j*4 == Y and i + j == X:
            ans = "Yes"
            break
        
print(ans)

Solution (Python):
X,Y = map(int,input().split())
ans = 'No'
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())

a = 0
ans = "No"

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

Solution (Python):
a,b = map(int,input().split())
c = 0
d = ["No","Yes"]

for i in range(a+1):
  if 2*(i+a) == b:
    c = 1 

print(d[c])

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

Solution (Python):
input_line = input().split(" ")
X = int(input_line[0])
Y = int(input_line[1])
Pat = 0
for i in range(X + 1):
  C = i
  T = X - i
  Cf = C * 2
  Tf = T * 4
  F = Cf + Tf
  if Y == F:
      Pat = Pat + 1
if Pat > 0:
  print("Yes")
else:
  print("No")

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

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

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

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

Solution (Python):
def solve():
    X,Y = [int(i) for i in input().split()]
    if 2*X <= Y <= 4*X:
        if (4*X-Y) % 2 == 0:
            print("Yes")
        else:
            print("No")
    else:
        print("No")

if __name__ == "__main__":
    solve()

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

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

Solution (Python):
n,t = list(map(int,input().split()))
 
m = 0
while m < n+1:
  if m*4 + (n-m)*2 == t:
    print('Yes')
    break
      
  m += 1
    
if m == (n+1):
  print('No')

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

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

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

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

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

if __name__ == '__main__':
    main()

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

x = 0
while x<=X:
  if Y == x*2 + (X-x)*4:
    print('Yes')
    break
  x+=1
else:
  print('No')

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

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

if X * 2 > Y:
  print('No')
elif X * 4 < Y:
  print('No')
else:
  for i in range(0,X+1):
    if Y == (X * 2) + (i * 2):
      print('Yes')
      break
  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 z in list(range(x + 1)):
    if y == 2 * z + 4 * (x - z):
        print('Yes')
        exit()
print('No')

Solution (Python):

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

Solution (Python):
inp = [int(a) for a in input().split()]
head = float(inp[0])
leg = float(inp[1])

kame = (leg - head * 2) / 2
turu = head - kame

if kame == int(kame) and kame * turu >= 0:
  print ("Yes")
else:
  print ("No")

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!=0:
  print('Yes')
else:
  print('No')

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

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

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

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

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

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

print('No')

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

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

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

crane = 2*X - Y/2
turtle = Y/2 - X

print(['No', 'Yes'][crane >= 0 and turtle >= 0 and abs(crane) + abs(turtle) > 0 and Y % 2 == 0])

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

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

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

Solution (Python):
XY = input().split()
X = int(XY[0])
Y = int(XY[1])
l = []
for i in range(X+1):
    for j in range (X+1):
        if i + j == X:
            if (4*i + 2*j) == Y:
                l.append("Yes")
            else:
                l.append("No")
if l.count("Yes") > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
X,Y=map(int,input().split())
now = 4*X
end = 2*X
while(now>=end):
    if now==Y:
        print("Yes")
        exit()
    now-=2
print("No")

Solution (Python):

X,Y=map(int,input().split())
def solve(X, Y):
    return (2*X - (1/2)*Y, -X + (1/2)*Y)
a, b = solve(X, Y)
ans = ['No', 'Yes'][((a>=0)&(b>=0))&((a%1==0)&(b%1==0))]
print(ans)

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 Y % 2 == 0:
    if X <= (Y / 2) and (Y / 2) <= (2 * X):
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

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

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

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

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

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

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

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

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

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())
number=0
for i in range(X+1):
    if 2*i + 4*(X-i) == Y:
        number += 1
    else:
        number += 0
if number > 0:
    print('Yes')
else:
    print('No')

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

n = int((y-2*x)/2)
m = int((4*x-y)/2)

if x == m+n and m >= 0 and n >= 0:
    print('Yes')
else:
    print('No')

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

    print(ans)

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

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

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())
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())
a=(y-2*x)//2
b=x-a
 
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 in range(x*2, x*4+1, 2):
  print("Yes")
else:
  print("No")

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

ans = 0

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

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

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

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

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

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

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

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

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

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

Solution (Python):
x, y = map(int, input().split())
lst = []
ans = 'No'

for i in range(x):
  lst.append(2)

for i in range(x):
  if sum(lst) == y:
    ans = 'Yes'
    break
  lst[i] = 4
    
if sum(lst) == y:
    ans = 'Yes'
    
print(ans)

Solution (Python):
x=input()
lst=x.split(" ")
lstr=[]
for a in lst:
    lstr.append(int(a))
X=lstr[0]
Y=lstr[1]
if(Y%2==1):
    print('No')
else:
    if(Y/X<=4 and Y/X>=2):
        print('Yes')
    else:
        print("No")

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

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

def solve(x,y):
    legs = x * 2
    while(legs <= x * 4):
        if legs == y:
            print('Yes')
            return
        legs += 2
    print('No')
    return

solve(x,y)

Solution (Python):
x, y = 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())

if y % 2 != 0:
  print("No")
  exit()
elif 4 * x < y:
  print("No")
  exit()
elif 2 * x > y:
  print("No")
  exit()

print("Yes")

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

turu=X
kame=0
Flag=False
while turu>=0:
  total=4*turu+2*kame
  if total==Y:
    Flag=True
    break
  else:
    turu+=-1
    kame+=1
print("Yes" if Flag is True else "No")

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

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

Solution (Python):
X,Y = map(int,input().split())
count = 0
for i in range(X+1):
  for j in range(X+1):
    if 2*i + 4*j == Y and i+j ==X:
      count +=1
if count == 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')
        break
else:
    print('No')

Solution (Python):
given = input()

data = given.strip().split()
X = int(data[0])
Y = int(data[1])

i = 0
ashi = 0
while (i <= X):
    ashi = 2 * (X - i) + 4 * i
    if ashi == Y:
        print("Yes")
        break
    i = i + 1

if i == X + 1 and ashi != Y:
    print("No")

Solution (Python):
import sys

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

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())
min = 2 * x
gap = y - min

if gap < 0 or gap > min:
  print("No")
else:
  if gap % 2 == 0:
    print("Yes")
  else:
    print("No")

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

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

A  =(-y+4.0*x)/2.0
B = (y-2.0*x)/2.0

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

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

if __name__ == '__main__':
    main()

Solution (Python):
import sys

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


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

Solution (Python):


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

for t in range(0, X + 1):
    legs = 2 * (X + t)
    if Y == legs:
        a = 'Yes'
        break
    if Y < legs:
        a = 'No'
        break
else:
    a = 'No'

print(a)