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.



Sample input:
3 8


Sample output:
Yes

Submission status: Runtime Error

Solution code:
x = input().split(' ')

def rcv(len, sum):
  if sum>int(x[1]):
  elif len == int(x[0]):
    result = sum == int(x[1])
  else:
    result = rcv(len+1, sum+2) or rcv(len+1,sum+4)
  return result

result = rcv(0,0)
if result:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
s = [input() for i in range(1)] 
li = list(map(float, s[0].split()))
li1 = li[0]
li2 = li[1]
y = ((li2 /2 - li1) * 10)%10
if y == 0:
    if li1 - (li2 /2 - li1) >= 0:
        print("Yes")
        break
    if li1 - (li2/2 - li1) < 0:
        print("No")
        break
if y != 0:
    print("No")

Submission status: Runtime Error

Solution code:
a,b=(int(x) for x in input().split())
lista=[]
for numa in range(a+1):
  lista.append(numa*2)
for numb in range(a+1).reverse():
  listb.append(numb*4)
count=0
combined1 = [x*y for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")

Submission status: Runtime Error

Solution code:
import os
X, Y = map(int, input().split())
if X*4 < Y:
  print('No')
  os.exit(0)
diff = Y - X*2
quo, remain = divmod(diff, 2)
if remain == 0:
  if quo > X:
    print('No')
  else:
    print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import sympy

num = list(map(int, input().rsplit()))

x = sympy.Symbol("x")

expr = 2 * x + 4 * (num[0] - x) - num[1]
ans = sympy.solve(expr)

ans = str(ans)

if "/" in ans or "-" in ans:
    print("NO")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
n, legs= map(int, input().split(" "))

x = (legs - 2*n)/2
y = (4*n - legs)/2

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

Submission status: Runtime Error

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

c = 0
t = x

while t >= 0 :
    if c * 2 + t * 4 == y :
        break 
    c += 1
    t += -1
else :
    print(No)

print(Yes)

Submission status: Runtime Error

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

if x2 == y:
  print('Yes')
  exit()

if x4 == y:
  print('Yes')
  exit()

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

print('No')

Submission status: Runtime Error

Solution code:
import os

def main():
  args = list(map(int, input().split()))
  nb = args[0]
  nl = args[1]
  if nb == 0 or (nl % 2 == 1):
    print('No')
    return
  if (nl / 4.0) > nb:
    print('No')
    return
  if (nl % ((nb - 1) * 2)) % 2 == 0:
    print('Yes')
  else:
    print('No')

if __name__ == '__main__':
  main()

Submission status: Runtime Error

Solution code:
import numpy as np
num_list = []

def leg_num(c, t):
    return 2*c+4*t


for i in range(1, 101):
    leg_num_list = []
    for j in range(i):
        if leg_num(j, i-j) <= 100:
            leg_num_list.append(leg_num(j, i-j))
        if leg_num(i-j, j) <= 100:
            leg_num_list.append(leg_num(i-j, j))
    num_list.append(leg_num_list)

x, y = map(int, input().split(" "))
if y in num_list[x]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
import numpy as np
num_list = []

def leg_num(c, t):
    return 2*c+4*t

for i in range(1, 101):
    leg_num_list = []
    for j in range(i):
        if leg_num(j, i-j) <= 100:
            leg_num_list.append(leg_num(j, i-j))
        if leg_num(i-j, j) <= 100:
            leg_num_list.append(leg_num(i-j, j))
    num_list.append(leg_num_list)

x, y = map(int, input().split(" "))
    if y in num_list[x]:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
l = [int(i) for i in input().split()]

for i in range(l[0]+1):
  r = (i * 2 + (l[0] - i) * 4
  if r == l[1]:
    print("Yes")
    break
  else:
    if i == l[0]:
      print("No")

Submission status: Runtime Error

Solution code:
a,b=(int(x) for x in input().split())
lista=[range(1,a)]
listb=lista.reverse()
count=0
combined1 = [(2*x) * (4*y) for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")

Submission status: Runtime Error

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


#つるをi

for i in range(X):
  if 2*i ==  4*X - Y and i != 0:
      ans +=1
  elif 2*(i+1) == Y:
      ans +=1
  elif 4*(X-i) == Y:
      ans +=1


if ans > 0:
  print('Yes') 
else:
  print('No')

Submission status: Runtime Error

Solution code:
a = input()
b = input()

x = int(a)
y = int(b)

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

if isinstance(n, int):
    if isinstance(m, int):
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

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

c = 0
t = x

while t >= 0 :
    if c * 2 + t * 4 = y :
        break 
    c += 1
    t += -1
else :
    print(No)

print(Yes)

Submission status: Runtime Error

Solution code:
X,Y = map(int,input().split())
var=0
for i in range(2X,4X+1,2):
  if Y=i:
    var=1
if var=1:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
2 100

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
X, Y = [int(x) for x in stdin.readline().rstrip().split()]
if Y % 2 == 0:
    Z = Y / X
    if 2 <= Z <= 4:
        print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
import sympy
x = sympy.Symbol('x')
y = sympy.Symbol('y')

s = input()
lst = s.split()

ex1 = x + y - int(lst[0])
ex2 = 2 * x + 4 * y - int(lst[1])

d = sympy.solve([ex1, ex2])

if d[x] >= 0 and d[y] >= 0:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = y//4
if 2*(x-a)==y-4*a:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = y//4
if 2*(x-a)==y-4*a:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x, y = [int(x) for x in input.split()]
CRANE = 2
TURTLE = 4

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

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

if y > (TURTLE * x):
    print("No")

print("YES")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

c = [4,2]
count = []

for i in range(x-1):
    for j in range(x-1):
        for k in range(x-1):
            sum = c[i]+c[j]+c[k]
            count.append(sum)

if count.count(y) or (x == 1 and y == 2) or (x == 1 and y == 4):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

crain = (4*X - Y) / 2
tu = X - crain
if crain.is_integer() and crain >= 0:
    print("Yes")
    break
elif tu.is_integer() and tu >=0:
    print("Yes")
    break
else:
    print("No")
    break

Submission status: Runtime Error

Solution code:
from collections import deque,defaultdict
from math import ceil,floor,inf,sqrt,factorial,gcd,log2
from copy import deepcopy
ii1=lambda:int(stdin.readline().strip())
is1=lambda:stdin.readline().strip()
iia=lambda:list(map(int,stdin.readline().strip().split()))
isa=lambda:stdin.readline().strip().split()
mod=1000000007
ani,total = iia()
if 0<=(4*ani-total)<=2*ani:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

ans = False
c = 0
t = x

while ans = False :
    if t = -1 :
        break 
        elif c*2+t*4 == y :
            ans = True
        elif : 
            c += 1
            t += -1

if ans :
    print(Yes)
    elif :
      print(No)

Submission status: Runtime Error

Solution code:
X,Y=map(int,input().split())
b=int((4X-Y)/2)
a=int((Y-2b)/4)
if 4a+2b=Y and a+b=X:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
from sys import stdin,stdout
import math
from collections import deque,defaultdict
from math import ceil,floor,inf,sqrt,factorial,gcd,log2
from copy import deepcopy
ii1=lambda:int(stdin.readline().strip())
is1=lambda:stdin.readline().strip()
iia=lambda:list(map(int,stdin.readline().strip().split()))
isa=lambda:stdin.readline().strip().split()
mod=1000000007
ani,total = iia()
if 0<=(4*ani-total)<=2*ani:
    print('Yes')
else:
    print('No'

Submission status: Runtime Error

Solution code:
n=input()
x,y=n.split()
c=(4*int(x)-int(y))/2
t=int(x)-c
print(z)
if c.is_integer and 100>=c>=0 and 100>=t>=0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

for a in range(x + 1):
    tem = 2 * a + 4 * (x - a)
    if (tem == y):
        #  and (2 * x <= y <= 4 * x):
        print('Yes')
        exit(1)

print('No')

Submission status: Runtime Error

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

max_num = 4 * x
min_num = 2 * x

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
anim, leg = [int(x) for x in input().split()] 

y = (leg - 2anim) / 2
x = (4anim - leg) / 2

if isinstance(y, float) or isinstance(x, float) or y < 0 or x < 0:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
X,Y=map(int,input().split())
b=(4X-Y)/2
a=(Y-2b)/4
if 4a+2b=Y and a+b=X:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
X=int(input())
Y=int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
ans = "No"
foots = 2*X
for tsuru in range(X+1):
    if foots == Y:
        ans = "Yes"
    foots += 2
    
    
print(ans)

Submission status: Runtime Error

Solution code:
x,y=map(int,input().split())
a=0
b=0
if y == 2*x or y == 4*x:
  print("Yes")
else:
  count=0
  for i in range(0,x):
    for j in range(0,x):
      if (i+j)==x:
        if 2*i + 4 * j == y:
          count=1     
if count==0:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X, Y = map(int, input().split())
A = x
B = 0
if Y % 2 != 0:
  print("NO")
  quit()
else:
  while A >= 0:
    C = A*2 + B*4
    if C == Y:
      print("YES")
      quit()
     A -=1
     B +=1
print("NO")

Submission status: Runtime Error

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

for i in range(X+1):
    for j in range(X+1):
        if int(i) + int(j) < X+1:
            if (((2*i) + (3*j)) == Y) or (((2*j) + (3*i)) == Y):
                print("Yes")
                sys.exit()

print("No")

Submission status: Runtime Error

Solution code:
animal = input()
legs = input()
if legs%2 == 0 and legs <= animal*2 and legs >= animal*4:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

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

print('No')

Submission status: Runtime Error

Solution code:
x, y = input().split()

max_num = 4 * x
min_num = 2 * x

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

Submission status: Runtime Error

Solution code:
X = int((input().split())[0])
Y = int((input().split())[1])
c = (4*X-Y)/2
t = (Y-2*X)/2
if c >= 0 and int(c) == c:
    if t >= 0 and int(t) == t:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Runtime Error

Solution code:
x = list(map(int, input().split()))
def func(x):
    for i in range(x[0]+1):
        for j in range(x[0]+1):
            if i+j>x[0]:
                break
            elif i*2 + j*4 == x[2] or j*2 + i*4 == x[2]:
                print('Yes')
                return
    print('No')
    return
func(x)

Submission status: Runtime Error

Solution code:
X, Y = map(int, input().split())
A = x
B = 0
if Y % 2 != 0:
  print("NO")
else:
  while A >= 0:
    C = A*2 + B*4
    if C == Y:
      print("YES")
      quit()
     A -=1
     B +=1
  print("NO")

Submission status: Runtime Error

Solution code:
import sympy

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

t = sympy.Symbol('t')
c = sympy.Symbol('c')

a = sympy.solve([t + c - x,4*t + 2*c - y],[t, c])

if a[t]<0 or a[c]<0:
    print("No")

elif a[t]%1 == 0 and a[c]%1 == 0:
    print("Yes")

else:
    print("No")

Submission status: Runtime Error

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

if (Y%2 == 1):
  print("No")
elif (Y > (X*4)):
  print("No")
else:
  yes = False
  for i in range(1,X+1):
    fNum = i
    tNum = X-i
    if ((fNum*4)+(tNum*2)==Y):
      print("Yes")
      yes = True
  if not (false):
    print("No")

Submission status: Runtime Error

Solution code:
X,Y=map(int,input().split())
a+b=X
if 2*a+4*b==Y:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

for a in range(x + 1):
    if  a == - y / 2 + x:
        print('Yes')
        exit(1)

print('No')

Submission status: Runtime Error

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

if (Y%2 == 1):
  print("No")
elif (Y > (X*4)):
  print("No")
else:
  yes = false
  for i in range(1,X+1):
    fNum = i
    tNum = X-i
    if ((fNum*4)+(tNum*2)==Y):
      print("Yes")
      yes = True
  if not (false):
    print("No")

Submission status: Runtime Error

Solution code:
import sympy

num = list(map(int, input().rsplit()))

x = sympy.Symbol("x")

expr = 2 * x + 4 * (num[0] - x) - num[1]
ans = sympy.solve(expr)

if ans[0] > 0:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
a,b = map(int, input().split())
i = 0
while i<=a:
  turu = 2*(a-i)
  kame = 4*i
  
  if b == turu:
    print('YES')
    
  if b == kame:
    print('YES')
  
  amari = b - turu
  if amari == 0:
    print('YES')
    break

  if kame !=0:
    if amari % kame == 0:
      print('YES')
      break
      
  i = i + 1
  
else:
  print('No)

Submission status: Runtime Error

Solution code:
try:
	N, M = map(int,input().split())
	for i in range(1, N+1):
    	f = 2 * i + 4 * (N - i)
    	if f == M:
       		print("Yes")
        	break
	else:
    	print("No")
except EOFError as error:

Submission status: Runtime Error

Solution code:
X=input()
Y=input()
crain = (4 * X - Y) / 2
if crain.is_integer() and crain > 0:
    crain = int(crain)
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
x, y = input().split()

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

max_num = 4 * x
min_num = 2 * x

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

Submission status: Runtime Error

Solution code:
import sympy

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

a=b=0


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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
X = int(input().split()[0])
Y = int(input().split()[1])
c = (4*X-Y)/2
t = (Y-2*X)/2
if c >= 0 and int(c) == c:
    if t >= 0 and int(t) == t:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Runtime Error

Solution code:
number = input()
list = number.split()
if int(list[1]) % 3 == 0 or int(list[0]) * 4 < int(list[1]):
    print("No")
else:
    a = 0
    for i in range(int(list[0])):
        a = i
        n = i + 1
        n2 = int(list[0] - n)
        if n * 2 + n2 * 4 == int(list[1]):
            print("Yes")
            break
    if a == int(list[0]) - 1:
      print("No")

Submission status: Runtime Error

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

for i in range(1,X):
    amari = Y - 4*i-2*(X-i)
    if amari == 0:
        print('Yes')
        break
if amari !=0:
   print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

flag = False

if Y % 2 != 0:
    prunt("No")
    exit()

def memo(x, y):
    global flag
    if x == 0:
        if y == 0:
            flag = True
        return flag

    
    memo(x-1, y-2)
    memo(x-1, y-4)

memo(X, Y)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X = int(input().split()[0])
Y = int(input().split()[1])
c = (4*X-Y)/2
t = (Y-2*X)/2
if c >= 0 and int(c) == c:
  if t >= 0 and int(t) == t:
  	print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
# 全部亀でもならない合計足数に足りない
if y > x * 4:
    print('No')
# 全部鶴でも合計足数をはみ出す
elif y < x * 2:
    print('No')
# 足が奇数
elif y % 2 == 1:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
import sympy

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

a=b=0


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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X, Y = map(int, input().s .- 0   			111						/plit())

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

Submission status: Runtime Error

Solution code:
import numpy as np

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

cranes = np.arange(X) * 2
turtles = (np.arange(X)*4).reshape(-1,1)

total = cranes + turtles

if np.any(total == Y):
  print('Yes')
else:
  print('No)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import sys
x,y = map(int,input().split())if y % x != 0:
    print('No')
    sys.exit()
if 2**x >= y:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int, input().split())
i = 0
while i<a:
  turu = 2*(a-i)
  kame = 4*i
  
  amari = b % turu
  if amari == 0:
    print('YES')
    break

  if kame !=0:
    if amari % kame == 0:
      print('YES')
      break
      
  i = i + 1
  
else:
  print('No)

Submission status: Runtime Error

Solution code:
//Use valgrind once if the submission doesn't go through. It can detect uninitialized variables and see where they could be an issue.
#include <bits/stdc++.h>
using namespace std;

int main(){

	ios_base::sync_with_stdio(false);
    	cin.tie(NULL);

	int x,y;
	cin>>x>>y;
	if(y&1)
	{
		cout<<"No"<<endl;
	}
	else
	{
		y>>=1;
		int a=y-x,b=x-a;
		if(a>=0&&b>=0)
		{
			cout<<"Yes"<<endl;
		}
		else
		{
			cout<<"No"<<endl;
		}
	}
}

Submission status: Runtime Error

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

for i in range(26):
  for j in range(51):
    if (i + j == x) and (4 * i + 2 * j == Y):
      print('Yes')
    else:
      print('No')

Submission status: Runtime Error

Solution code:
#!/usr/local/bin/python3
# coding: utf-8

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

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

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

Submission status: Runtime Error

Solution code:
x, y = map(int, input().split())
count = 0

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

Submission status: Runtime Error

Solution code:
X,Y=map(int,input().split())
for a in range(X):
  b=X-a
  if 2a+4b==Y:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

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

ans = "No"
i = 0
while i <= x:
  z = y - 2 * i
  if z == 0:
    ans = "Yes"
    break
  if z % ((x - i) * 4) == 0:
    ans = "Yes"
    break
  i += 1

print(ans)

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())

ans=0

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
def main():
    x = int(input())
    y = int(input())
    l = list()
    l.append(2*x)
    for i in range(1, x+1):
        l.append(2*x + i*2)
    if y in l:
        print('Yes')
    else:
        print('No')
        
if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

if (y-2*x)%2==0:
  k = (y-2*x)//2
  t = x-k
else:
  print("No")

if 0 <= k and 0 <= t:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

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

print("No")

Submission status: Runtime Error

Solution code:
X,Y=map(int,input().split())
a+b=X
if 2a+4b==Y:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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