TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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.

Submission attempts (in order):
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")

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(intinput()split())
a = 4x-y
if a/2 = a%2:
  print('Yes')
else:
  print('No')

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

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y=map(int,input().split())
if 2*x<=y and y<=4*x and y&2=0:
  print("Yes")
else:
  print("No")

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x,y=map(int,input().split())

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

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

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


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int, input().split()))

ymax = 4 * x
ymin = 2 * x

if y >= ymin and y <= ymax and y % 2 == 0:
  print('Yes')
else:
  print('No')

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

ymax = 4 * x
ymin = 2 * x

if y >= ymin and y <= ymax and y % 2 == 0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())
for i in range(x):
    if (x-i)*4 + i*2 == y:
        print("YES")
        exit()

print('NO')

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

print('NO')

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

print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
X , Y = map(int, input().split())
val = X * 2
for i in range(X + 1):
    val += i * 2
    if val == Y:
        print('YES')
        break
else:
    print('NO')

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys
animals, legs = [int(i) for i in input().split()]

cranes = 2
turtle = 4

for i in range(1, animals + 1):
    for j in range(1, animals + 1):
        number = (2*i) + (4*j)
        if i + j == animals and number == legs:
            print("YES")
            sys.exit()

print("NO")

import sys
animals, legs = [int(i) for i in input().split()]

cranes = 2
turtle = 4

for i in range(0, animals + 1):
    for j in range(0, animals + 1):
        number = (2*i) + (4*j)
        if i + j == animals and number == legs:
            print("Yes")
            sys.exit()

print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())
num = (y - (2 * x))/ 2
num_2 = int(num)
print(num)
print(num_2)
if (4 * x) > y and num_2 -num == 0:
    print("Yes")
else:
    print("No")

x, y = map(int, input().split())
num = (y - (2 * x))/ 2
num_2 = int(num)
if (4 * x) >= y and (2 * x) <= y and num_2 -num == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
X,Y = list(map(int,input().split()))
x = 2*X-Y/2
y = Y/2 - X
if x >= 0 and y >= 0 and (type(x) is int) and  (type(y) is int):
  print("Yes")
else:
  print("No")

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int,input().split())
if y%2!=0:
    print("No")
kame=(y//2)-x
tsuru = (-y//2)+2x
if kame + tsuru == x:
    print("Yes")
else:
    print("No")

def abc2(x,y):
    if y%2!=0:
        return print("No")
    kame = (y//2)-x
    if (kame>=0)&(kame<=x):
        return print("Yes")
    else:
        return print("No")
x,y = map(int,input().split())
abs2(x,y)

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)

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)

x,y = map(int,input().split())
kame=(y//2)-x
if y%2!=0:
    print("No")
elif (kame>=0)&(kame<=x):
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())

no_flag = 0

if y - (4 * x) == 0:
    print("Yes")
elif y - (2 * x) == 0:
    print("Yes")
else:
    for cnt in range(x+1):
        if y >= 4 and y - (2 * (x-(cnt))) != 0:
            y -= 4
        elif y >= 2:
            y -= 2

        if y == 0 and cnt == x-1:
            no_flag = 0
        else:
            no_flag = 1

    if no_flag == 0:
        print("Yes")
    elif no_flag == 1:
        print("No")


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

no_flag = -1

if y - (4 * x) == 0:
    print("Yes")
elif y - (2 * x) == 0:
    print("Yes")
else:
    for cnt in range(x):
        if y >= 4 and y - (2 * (x-(cnt-1))) != 0:
            y -= 4
        elif y >= 2:
            y -= 2

        if y == 0 and cnt == x-1:
            no_flag = 0
        else:
            no_flag = 1

    if no_flag == 0:
        print("Yes")
    elif no_flag == 1:
        print("No")


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

no_flag = 0

if y - (4 * x) == 0:
    print("Yes")
elif y - (2 * x) == 0:
    print("Yes")
else:
    for cnt in range(x):
        if y >= 4 and y - (2 * (x-(cnt))) != 0:
            y -= 4
        elif y >= 2:
            y -= 2

        if y == 0 and cnt == x:
            no_flag = 0
        else:
            no_flag = 1

    if no_flag == 0:
        print("Yes")
    elif no_flag == 1:
        print("No")


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

no_flag = -1

if y - (4 * x) == 0:
    print("Yes")
elif y - (2 * x) == 0:
    print("Yes")
else:
    for cnt in range(x):
        if y >= 4 and y - (2 * (x-(cnt))) != 0:
            y -= 4
        elif y >= 2:
            y -= 2

        if y == 0 and cnt == x-1:
            no_flag = 0
        elif y == 0 and cnt != x-1:
            no_flag = 1
            break
        else:
            no_flag = 1

    if no_flag == 0:
        print("Yes")
    elif no_flag == 1:
        print("No")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys

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


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

import sys

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


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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
X, Y = map(int, input().split())
2 ans = 'No'
3 for a in range(X + 1):
4 b = X - a
5 if 2 * a + 4 * b == Y:
6 ans = 'Yes'
7 print(ans)


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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())

j = y/2 - x
i = x - y/2

if (j == abs(int(j))) and (i == abs(int(i))):
    print("Yes")
else:
    print("No")

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

j = y/2 - x
i = 2*x - y/2

if (j == abs(int(j))) and (i == abs(int(i))):
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int, input().split())
print( (4*x - y) / 2)
if (4*x - y)  / 2 >= 0 and (4*x - y)  % 2 == 0:
    print("Yes")
else:
    print("No")


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

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



Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
X,Y = map(int, input().split())

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

if isinstance(a, int) and isinstance(b, int) and a>0 and b>0 :
    print("Yes")
else:
    print("No")


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

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

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


Verdicts: Wrong Answer

Accepted
Problem: 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.

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

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x,y=input().split()
if y%2==1 or x*2>y or x*4<y:
  a="No"
else:
  a="Yes"
print(a)

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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split(" "))

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


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

if y%2 == 1:
    print('No')
elif 4 * x < y:
    print('No')
elif 2 * x > y:
    print('No')
else:
    for i in range(0,x+1):
        # print("i:{}".format(i))
        if 2 * i + 4 * (x-i) == y:
            print('Yes')
            break
    else:
        print('No')
        


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x ,y= list(map(int, input().split()))

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

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

print('No')


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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n,l = map(int,input().split())
if l%2 != 0:
    print('NO')
elif l<=n*4:
    print('YES')
else:
    print('NO')


n,l = map(int,input().split())
if l%2 != 0:
    print('No')
elif l>=n*2 and l<=n*4:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):

X,Y = map(int,input().split())
a = (4 * X - Y) / 2
if a.is_integer() and 0 <= a:
  print("YES")
else:
  print("NO")


X,Y = map(int,input().split())
a = (4 * X - Y) / 2
if a.is_integer() and 0 <= a <= X:
  print("YES")
else:
  print("NO")


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)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
#n = int(input())
x, y = map(int, input().split())
#l = list(map(int, input().split()))
#s = input()

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

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

else:
    print("No")


#n = int(input())
x, y = map(int, input().split())
#l = list(map(int, input().split()))
#s = input()
ans = "No"
for i in range(x+1):
    if 2*i+4*x == y:
        ans = "Yes"

print(ans)


#n = int(input())
x, y = map(int, input().split())
#l = list(map(int, input().split()))
#s = input()
ans = "No"
for i in range(x+1):
    if 2*i+4*(x-i) == y:
        ans = "Yes"

print(ans)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int,input().split())
if y // 2 == 0 and y > 4*x and y < 2*x:
      ans=('Yes')
else :
      ans = ('No')
print(ans)
      



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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys
x,y=map(int,input().split())

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


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

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

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

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

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

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
X, Y = map(int, input().split())

for turu in range(101):
    for kame in range(101):
        if turu + kame == X and 2 * turu + 4 * kame == Y:
            print('YES')
            exit(0)

print('NO')


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

for turu in range(101):
    for kame in range(101):
        if turu + kame == X and 2 * turu + 4 * kame == Y:
            print('Yes')
            exit(0)

print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y=map(int,input().split())
print('YES'if y%2==0 and x*2<=y<=x*4)

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
X = int(input())
Y = int(input())
flag =0
for crane in range(X + 1):
  if (Y - crane*2 - (X-crane)*4 ) == 0:
    print("Yes")
    flag =1
    break
if flag == 0:
    print("No")

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


X = int(input())
Y = int(input())
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")

X = int(input())
Y = int(input())
if (Y-2*X) % 2 == 0:
    print("Yes")
else:
    print("No")

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n , total = map(int,input().split())

if total % 2 == 0 :
    if 2*n <= total and 4*n >= total:
        print("yes")
    else:
        print("No")
else:
    print("No")

import sys

n , total = map(int,input().split())
t = 0
k = 0

for t in range(n + 1):
    for k in range(n + 1):
        x = t + k
        if x == n:
            if 2*t + 4*k == total:
                print("Yes")
                sys.exit()
print("No")
            

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y=map(int,input().split())
if y>=2*x and y<=4*x and y%6==0:
    print("YES")
else:
    print('NO')

x,y=map(int,input().split())
if y>=2*x and y<=4*x and y%2==0:
    print("YES")
else:
    print('NO')

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int, input().split())


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

  print('no')

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


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

  print('no')

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


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

  print('no')

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


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

  print('no')

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

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

  print('no')
else:
  print('no')

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

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

  print('No')
else:
  print('No')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())
c = 2
t = 4
if y%2 != 0:
    print("No")
else:
    while x != 0:
        if y%2 == 0:
            y -= c
            x -= 1
            continue
        if y%4 == 0:
            y -= t
            x -= 1
            continue
    if y == 0:
        print("Yes")
    else:
        print("No")
    


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

chk = False

for a in range(x+1):
    b = x-a
    d = 2*a + 4*b
    if d == y:
        chk = True
        break
    
if chk:
    print("Yes")
else:
    print("No")
    


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int,input().split())
cnt = 0
if y<(2*x):
    cnt+=1
if y>(4*x):
    cnt+=1
if (y-(2*x))%2 != 0:
    cnt+=1
else:
    print("No")
if cnt==0:
    print("Yes")

x,y = map(int,input().split())
cnt = 0
if y<(2*x):
    cnt+=1
if y>(4*x):
    cnt+=1
if (y-(2*x))%2 != 0:
    cnt+=1
if cnt==0:
    print("Yes")
if cnt!= 0:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import itertools
x,y = list(map(int,input().split()))

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


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]*(50-i)) == y:
      print("Yes")
      check=False
      break
  if check:
    print("No")


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

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

elif x > 50:
  print("No")

else:   
  lists = [2] + [4]
  lists = itertools.product(lists, repeat=50)
  check = True
  for i in lists:
    if sum(i) == y:
      print("Yes")
      check = False
      break
  if check:
    print("No")


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

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

elif x > 50:
  print("No")

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


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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())
c = (4 * x - y) / 2
if c.is_integer() and c >= 0:
    print('YES')
else:
    print('NO')

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
i=(input().split())
x=int(i[0])
y=int(i[1])

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


i=(input().split())
x=int(i[0])
y=int(i[1])

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
X,Y = map(int,input().split())

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

else:
    print("No")

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x,y = map(int,input().split())

b=abs(y-2*x)


if b==0:
  print('Yes')
elif b<0:
  print('No')
elif b%2!=0:
  print('No')
  
elif x >=b/2:
  print(x,y,b/2)
  print('Yes')
else:
  print('No')

    

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

b=y-2*x


if b==0:
  print('Yes')
elif b<0:
  print('No')
elif b%2!=0:
  print('No')
  
elif x >=b/2:
  
  print('Yes')
else:
  print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
c = b//4
d = b%4
e = d//2
if c+e== a:
    print("Yes")
else:
    print("No")

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


Verdicts: Wrong Answer

Accepted
Problem: 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.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
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:

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
X,Y=map(int,input().split())
if 2*X<=Y and Y<=4*X and Y%2==0:
  print('yes')
else:print('no')

a,b=map(int,input().split())
if 2*a<=b and b<=4*a and b%2==0:
  print('yes')
else:print('no')

X,Y=map(int,input().split())
if 2*X <= Y and Y <= 4*X and Y%2 == 0:
  print('yes')
else:print('no')

X,Y=map(int,input().split())
if 2＊X<=Y and Y<=4＊X and Y%2==0:
  print('yes')
else:print('no')

a,b=map(int,input().split())
if 2*a<=b and b<=4*a and b%2==0:
  print('yes')
else:print('no')

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
X,Y = map(int,input().split())
Ans = "No"
if Y%2 = 0:
    if 2*X<=Y and Y<=4*X:
        Ans = "Yes"

print(Ans)

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

print(Ans)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
X, Y = list(map(int, input().split()))

is_exist = False
for gruidaes in range(X + 1):
  turtles = X - gruidaes
  if turtles * 4 + gruidaes * 2 == Y:
    is_exist = True
    break

if is_exist:
  print('YES')
else:
  print('NO')

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

is_exist = False
for gruidaes in range(X + 1):
  turtles = X - gruidaes
  if turtles * 4 + gruidaes * 2 == Y:
    is_exist = True
    break

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import argparse
import collections
import logging.config
import sys
import csv
import numpy as np

def main():
    s=input().split(" ")
    si = []
    for d in s:
        si.append(int(d))
    ans = "no"
    for i in range(si[0]+1):
        if (si[1] == si[0]*4-2*i) : ans = "yes"
    print (ans)

if __name__ == '__main__':
    main()


import argparse
import collections
import logging.config
import sys
import csv
import numpy as np

def main():
    s=input().split(" ")
    si = []
    for d in s:
        si.append(int(d))
    print (si)
    ans = "no"
    for i in range(si[0]+1):
        if (si[1] == si[0]*4-2*i) : ans = "yes"
    print (ans)

if __name__ == '__main__':
    main()


import argparse
import collections
import logging.config
import sys
import csv
import numpy as np

def tester(x, y):
    ans = "No"
    for i in range(x+1):
        if (y == x*4-2*i) : ans = "Yes"
    return (ans)

def main():
    s=input().split(" ")
    si = []
    for d in s:
        si.append(int(d))
    print (tester(si[0],si[1]))

if __name__ == '__main__':
    main()


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())

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

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


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

#turu = (4*x-y)//2

# if (turu < 0) or (2*x > y):
#    print("No")
#    exit()

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

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

print(ans)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
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')

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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
X,Y = map(int, input().split())
if Y%2==1:
    print("NO")
else:
    kame=Y//4
    Y=Y//4
    turu=Y//2
    if (turu+kame)==X:
        print("YES")
    else:
        print('NO')


X,Y = map(int, input().split())
if Y%2==1:
    print("No")
else:
    kame=Y//4
    Y=Y-(kame*4)
    turu=Y//2
    if (turu+kame)==X:
        print("Yes")
    else:
        print('No')


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


X,Y = map(int, input().split())
if Y%2==1:
    print("NO")
else:
    kame=Y//4
    Y-=(kame*4)
    turu=Y//2
    if (turu+kame)==X:
        print("Yes")
    else:
        print('No')


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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

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

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

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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
X, Y = map(int, input().split())

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

float(t).is_integer()
if t > 0 and float(t).is_integer() and c > 0 and float(c).is_integer():
  print('yes')
else:
  print('no')


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

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

float(t).is_integer()
if t >= 0 and float(t).is_integer() and c >= 0 and float(c).is_integer():
  print('Yes')
else:
  print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
x, y = map(int, input().split())
aa =  y - 2 * x
a = aa / 2
b = x - a
print("Yes" if 0 <= a <= x and 0 <= b <= x and a + b == x and 4 * a + 2 * b == 7else 'No')


x, y = map(int, input().split())
aa =  y - 2 * x
a = aa / 2
print('Yes' if 0 <= a <= x and aa % 2 ==0 else 'No')


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
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)

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)

Verdicts: Runtime Error

Accepted