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())
print(['No','Yes'][y%2==0 and 2*x <= y <= 4*x])

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

print(ans)

Solution (Python):
x,y = map(int,input().split())
bool = False
for i in range(x+1):
    if 2*i + 4*(x - i) == y:
        print('Yes')
        break
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 = list(map(int, input().split()))

flag = True
for kame in range(X + 1):
    tsuru = X - kame
    if (4 * kame + 2 * tsuru == Y):
        print('Yes')
        flag = False
        break

if(flag):
    print('No')

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect






import sys

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

stdin = sys.stdin

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

X, Y = na()
ans = 'No'
for turu in range(X+1):
    kame = X - turu
    if turu * 2 + kame * 4 == Y:
        ans = 'Yes'
        break
print(ans)

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

flag = False
for i in range(100):
  for j in range(100):
    if i+j == X and 2*i+4*j == Y:
      flag = True

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

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

Solution (Python):

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

l = []
flag = False

for i in range(x+1):
    l.append((i,x-i))

for xx,yy in l:
    if y == (xx*2+yy*4):
        flag = True
        break
if flag:
    print("Yes")
else:
    print("No")

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

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 2*i + 4*j == y:
                print('Yes')
                exit()
                
print('No')

Solution (Python):
import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp

INF = inf
MOD = 1000000007

x, y = [int(i) for i in input().split()]

tmp = 0
res = "No"

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

print(res)

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

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 = 'No'
for a in range(X + 1):
	b = X - a
	if Y == 2 * a + 4 * b:
		ans = 'Yes'
		break
print(ans)

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

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

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

if Y % 2 == 0:
    K = Y//2 - X
    if K >= 0:
        if X - K >= 0:
            print("Yes")
            exit()

print("No")

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

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

Solution (Python):

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

key1 = Y - 2*X
key2 = 4*X - Y



if key1 % 2 != 0:
    print('No')
elif key2 % 2 != 0:
    print('No')
elif key1 < 0:
    print('No')
elif key2 < 0:
    print('No')
else:
    print('Yes')

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

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

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


if Y % 2 == 1:
  print('No')
else:
 for num_turu in range(X+1):
   num_kame = X - num_turu
   if Y == 4 * num_kame + 2 * num_turu:
     print('Yes')
     break
 else:
  print('No')

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

Solution (Python):
def main():
  X,Y = map(int,input().split())
  for x in range(101):
    for y in range(101):
      if x+y==X and 2*x+4*y==Y:
        return True
  return False

if __name__ == '__main__':
  print("Yes" if main() else "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())
for i in range(Y // 4 + 1):
  if i * 4 + (X - i) * 2 == Y:
    print('Yes')
    break
else:
  print('No')

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

Solution (Python):
from sys import stdin
readline = stdin.readline
def i_input(): return int(readline().rstrip())
def i_map(): return map(int, readline().rstrip().split())
def i_list(): return list(i_map())


def main():
    X, Y = i_map()
    ans = False
    z = Y - (X * 2)
    if z < 0:
        pass
    elif z == 0 or (z % 2 == 0 and (z // 2) <= X):
        ans = True
    print("Yes" if ans else "No")

if __name__ == "__main__":
    main()

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

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

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

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

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

print(ans)

Solution (Python):
X,Y = (int(x) for x in input().split())
Flag = False
for A in range(0,X+1):
    B = X-A
    if 2*A+4*B==Y:
        Flag = True
        break
print(['No','Yes'][Flag])

Solution (Python):
x,y = map(int,input().split())
cnt = 0
for b in range(x+1) :
    for t in range(x+1) :
        if x == b+t and y == 2*b+4*t :
            print('Yes')
            exit()
        else :
            continue
print('No')

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

r = range(2*X, 4*X+2, 2)

for i in r:

  if i == Y:
    count += 1

print('Yes' if count > 0 else 'No')

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

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

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

ans = 0

if Y/2 == X: ans = 1

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

if ans == 1: print('Yes')
else: print('No')

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

ans = 0

if Y/2 == X: ans = 1

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

if ans == 1: print('Yes')
else: print('No')

Solution (Python):




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

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

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

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

Solution (Python):
[X, Y] = [int(i) for i in 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())
ans = 0
for i in range(x+1):
    if 2 * i + 4*(x-i) == y:
        ans = 1

print('Yes' if ans == 1 else 'No')

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

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

ans = 'No'

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

print(ans)

Solution (Python):
import sys
input = sys.stdin.readline
import math
 
def INT(): return int(input())
def MAPINT(): return map(int, input().split())
def LMAPINT(): return list(map(int, input().split()))
def STR(): return input()
def MAPSTR(): return map(str, input().split())
def LMAPSTR(): return list(map(str, input().split()))
 
f_inf = float('inf')
 
x, y = LMAPINT()
for i in range(x+1):
  for j in range(x+1):
    if i + j == x and i*2 + j*4 == y:
      print('Yes')
      exit()
print('No')

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

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

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

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

Solution (Python):
animals_and_legs=input()
list=animals_and_legs.split()
animals=int(list[0])
legs=int(list[1])
j=animals
i=0
something=True
while i<=animals:
    if i*4+j*2==legs:
        print("Yes")
        something=False
        break
    i=i+1
    j=j-1
if something is True:
    print("No")

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

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

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

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

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

flag1 = (Y - 2 * X >= 0) and ((Y - 2 * X) % 2 == 0)
flag2 = (4 * X - Y >= 0) and ((4 * X - Y) % 2 == 0)

print("Yes" if flag1 and flag2 else "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')
  else:
    a +=1
  
    
if a ==X+1:
  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):
def main():
    x, y = map(int, input().split())

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

    print('No')


if __name__ == '__main__':
    main()

Solution (Python):











import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,sqrt,factorial,hypot,log 
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint
def ceil(a,b): return (a+b-1)//b
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    X,Y=MI()
    if(Y-2*X>=0 and (Y-2*X)%2==0 and (Y-2*X)/2<=X):
        print("Yes")
    else:
        print("No")
if __name__ == '__main__':
    main()

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 = 3, 8

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())
flag = 0
for a in range(X+1):
    b = X-a
    if 2*a+4*b == Y:
        print("Yes")
        flag = 1
        break
if flag == 0:
    print("No")

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

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

def ans170(X:int, Y:int):
    if Y<=X*4 and Y>=X*2 and Y%2==0:
        return("Yes")
    else:
        return("No")

print(ans170(X,Y))

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

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

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):
def main(heads, foots):
    """
    - foots != odd
    - 2*heads <= foots <= 4*heads
    """
    if foots%2 == 1:
        return 'No'
    else:
        if 2*heads <= foots <= 4*heads:
            return 'Yes' 
        else:
            return 'No'

if __name__ == '__main__':
    heads, foots = map(int, input().split())
    ans = main(heads, foots)
    print(ans)

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

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

print('No')

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

ans = 'No'


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

print(ans)

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

flag = False
for i in range(N+1):
  count = i * 2 + (N - i) * 4
  if count == A:
    flag = True

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

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

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


if __name__ == '__main__':
    main()

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

ans = 0

for i in range(x+1):
    for j in range(x+1):
        if 2*i + 4 * j == y and i + j == x:
            ans += 1
            
if ans > 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())

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

Solution (Python):
if __name__ == '__main__':

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

	for i in range(0,x+1):
		for j in range(0,y+1):
			if i + j == x and 2*i + 4*j == y:
				flg = True
				break

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

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

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

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

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

print(ans)

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

if ((4*x-y)%2==0 and (-2*x+y)%2==0) and (1<=(4*x-y)//2<=100 and 1<=(-2*x+y)//2<=100):
    print('Yes')
elif ((4*x-y)%2==0 and (-2*x+y)%2==0) and (1<=(4*x-y)//2<=100 and (-2*x+y)//2==0):
    print('Yes')
elif ((4*x-y)%2==0 and (-2*x+y)%2==0) and ((4*x-y)//2==0 and 1<=(-2*x+y)//2<=100):
    print('Yes')
else :
    print('No')

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

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):
import sys

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


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

print('No')

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

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

high = x*4
low = x*2

if low <= y <= high 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())

ans = 'No'

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

    if 2*crane + 4*turtle == Y:
        ans = 'Yes'

print(ans)

Solution (Python):
X, Y= map(int, input().strip().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());print(('No','Yes')[2*x<=~y%2*y<=4*x])

Solution (Python):
x,y=map(int,input().split())
print(('No','Yes')[2*x<=y<=4*x and -~y%2])

Solution (Python):


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

Solution (Python):

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

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

def check():
  for i in range(x+1):
    k = x - i
    n = i * 2 + k * 4
    if n == y:
      return True
  return False

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

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

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

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

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

print("No")

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

def f():
    for turu in range(X + 1):
        if 2 * turu + 4 * (X - turu) == Y:
            return "Yes"
    return "No"

print(f())

Solution (Python):
x, y = map(int, input().split())
a = []
for i in range(0, x+1):
  a.append(2 * i + 4 * (x - i))
print("Yes" if y in a else "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 = False
 
for i in range(101):
	for j in range(101):
		if i+j == x and 2*i+4*j == y:
			ans = True
if ans:
	print("Yes")
else:
	print("No")

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

max_Y = 4 * X
min_Y = 2 * X
if max_Y < Y:
    print("No")
    exit()

y = max_Y
while y >= min_Y:
    if y == Y:
        print("Yes")
        exit()
    else:
        y -= 2
print("No")

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

Solution (Python):
l = [int(x) for x in input().split()]
total, ashi = l[0], l[1]

if ashi/2 != int(ashi/2):
    print('No')
else:
    if total <= ashi/2:
        if 2*total >= ashi/2:
            print('Yes')
        else:
            print('No')
    else:
        print('No')

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

for t in range(101):
    for k in range(101):
        if t+k == X and 2*t + 4*k == Y:
            ans = True

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

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

ans = 0

foots = 2*int(x)

for i in  range(int(x)+1):
    if foots == y:
        ans +=1
    foots += 2

if ans == 1:
    print("Yes")

else:
    print("No")

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

if __name__ == "__main__":
    main()

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

if '__main__' == __name__:
    resolve()

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

Solution (Python):

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

for k in range(X+1):
    t = X - k
    if k*4 + t*2 == Y:
        print("Yes")
        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):
x,y = map(int,input().split())
ans = 'No'
for i in range(x + 1):
    ii = x - i
    if i * 2 + 4 * ii == y:
        ans = 'Yes'
print (ans)

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

ans = "No"

for i in range(noA+1):
    for j in range(noA+1):
        if (i+j) == noA:
            if ((i*2)+(j*4)) == noL:
                ans = "Yes"
                break
print(ans)

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

K = Y*0.5-X
T = 2*X - Y*0.5

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

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

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

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

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

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

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

flag = 0

for i in range(101):
    for j in range(101):
        if i+j == x:
            if 2*i+4*j == y:
                print("Yes")
                flag += 1
                break
    else:
        continue
    break

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

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

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







print(ans)

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

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

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

Solution (Python):


a, b = map(int, input().split())
if b % 2 == 0 and a * 2 <= b and b <= a * 4 :
    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):
if __name__ == "__main__":
    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 == 1:
  print('No')
elif x*2 > y:
  print('No')
elif x*4 < y:
  print('No')
else:
  print('Yes')

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

Solution (Python):
def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()


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

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

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

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

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

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

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

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

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


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

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

Solution (Python):
import numpy as np
import numpy.linalg as linalg 

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

if Y%2 == 1:
  print('No')
else:
  A = np.array([[1, 1],
                [2, 4]])
  A_inv = linalg.inv(A)

  B = np.array([X , Y])

  C = np.dot(A_inv, B)
  if C[0] >= 0 and C[1] >= 0 :
    print('Yes')
  else:
    print('No')

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

if 4*X < Y or Y < 2*X or Y%2 != 0:
    print('No')
    exit()

print('Yes')

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