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

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'

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 total>4*ani:
    print('No')
elif total % 2==0:
    crane=(4*ani - total)
    tor = total-2*ani
    if crane%2==0 or tor%2==0:
        if 0<=crane//2<=ani and 0<=tor//2<=ani:
            print('Yes')
        else:
            print('No')
    else:
        print('No')
else:
    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):
a, b = map(int,input().split())

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

print('NO')

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

for i in range(a + 1):
  if i * 2 + (a - i) * 4 == b:
      print("Yes")
      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 = int(input().split())
if y % 2 == 1:
    print("No")
elif 2 * x <= y <= 4 * x:
    print("Yes")
else:
    print("No")

x,y = map(int, input().split())
if y % 2 == 1:
    print("No")
elif 2 * x <= y <= 4 * x:
    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):
import sys
X, Y = map(int, input().split())

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

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

for x in range(0, X+1):
    if 2 * x + 4 * (X-x) == Y:
        print('Yes')
        sys.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):
line = input().split()

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

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

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

line = input().split()

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

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

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

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 % x == 2:
    print("Yes")

if y % x == 0:
    print("Yes")

else:
    print("No")


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

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

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

elif y % 2 == 0:
    print("Yes")

else:
    print("No")


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):
values = input().split()
print(values)

num_animals = int(values[0])
num_legs = int(values[1])

max_possible_legs = num_animals*4
min_possible_legs = num_animals*2

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

elif (num_legs <= max_possible_legs) and (num_legs >= min_possible_legs):
    print("Yes")

else:
    print("No")
    

values = input().split()

num_animals = int(values[0])
num_legs = int(values[1])

max_possible_legs = num_animals*4
min_possible_legs = num_animals*2

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

elif (num_legs <= max_possible_legs) and (num_legs >= min_possible_legs):
    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(1000):
    if 2*i==y-2*x:
        if i>x:
            print("NO")
            quit()
        else:
            print("YES")
            quit()
print("NO")

x,y=map(int,input().split())
for i in range(1000):
    if 2*i==y-2*x:
        if i>x:
            print("No")
            quit()
        else:
            print("Yes")
            quit()
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):
[S,Y] = [int(i) for i in input().split()]
S += 1
f = True
for x in range(S):
  for y in range(S-x):
    if 4*x + 2*y == Y:
      print("Yes")
      f = False
      break
        
if f:
  print("No")

[S,Y] = [int(i) for i in input().split()]
S += 1
f = True

if Y % 2 == 1:
  print("No")
else:
  for x in range(S):
    for y in range(S-x):
      if 4*x + 2*y == Y:
        print("Yes")
        f = False
        break

if f:
  print("No")

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

if Y % 2 == 1:
  print("No")
else:
  for x in range(S+1):
    y = S - x
    if 4*x + 2*y == Y:
      print("Yes")
      break
  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())
a=False

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

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

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

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

for i in range(0,x+1):
  if i*2+(x-i)*4==y:
    a=True
    break
    
if a==True:
  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())
ans = "NO"

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

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

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

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 math
x,y=map(int,input().split())

q = (2*x-y)/2
print('Yes' if q == math.ceil(q) and q >= 0 else 'No')

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





p = (4*x-y)/2
q = (y-2*x)/2
print('Yes' if p >= 0 and q >= 0 and p.is_integer() == True and q.is_integer() == 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):
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")

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


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

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


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):
import sys
def main():
  x, y = list(map(int,input().split()))
  for t in range(0,101):
    if y == (t*2+(x-t)*4):
      ans =('Yes')
      sys.exit()
    else:
      ans =('No')
  print(ans)     
  
if __name__ == '__main__':
    main()


import sys
def main():
  x, y = list(map(int,input().split()))
  for t in range(0,101):
    if y == (t*2+(x-t)*4) and (x-t)>=0:
#      print(t,(x-t),y)
      ans =('Yes')
      break
    else:
      ans =('No')
  print(ans)     
  
if __name__ == '__main__':
    main()


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

x,y = map(int,input().split())
for i in range(x+1):
  if 2*i + 4*(x-i) == 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):
N, M = map(int,input().split())
crain = (4 * N - M) / 2
R = N - int(crain)
if crain.is_integer():
  if crain >= 0　and R > 0:
    print("Yes")
  else:
    print("No")
else:
  print("No")


N, M = map(int,input().split())
crain = (4 * N - M) / 2
if crain.is_integer():
  if crain >= 0　and N - int(crain) > 0:
    print("Yes")
  else:
    print("No")
else:
  print("No")


N, M = map(int,input().split())
crain = (4 * N - M) / 2
if crain.is_integer():
  if crain >= 0　and (N - int(crain)) > 0:
    print("Yes")
  else:
    print("No")
else:
  print("No")


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

for a in range(x+1):
  b = x - a
  if a * 2 + b * 4 == y:
    ans = "Yse"
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: 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=[int(x) for x in input().split(" ")]
x=(b-2a)/2
y=(4a-b)/2
print("Yes" if x>0 and y>0 and x%1==0.0 and y%1==0.0 else "No")

a,b=[int(x) for x in input().split(" ")]
x=(b-2*a)/2
y=(4*a-b)/2
print("Yes" if x>=0 and y>=0 and x%1==0.0 and y%1==0.0 else "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())
z=0
 
for i in range(x):
    if i*2+(x-i)*4!==y:
        z=z
    else:
        z=1
 
if z==1:
    print("Yes")
else:
    print("No")

x,y=map(int,input().split())
z=0
 
for i in range(0,x+1):
    if i*2+(x-i)*4 == y:
        z=1

 
if z==1:
    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):
import sys

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

for i in range(x + 1):
  for j in range(x + i):
    if i * 2 + j * 4 == y and i + j == X:
      print('yes')
      sys.exit()
 
print('no')
      

x, y = map(int, input().split())
ans = 'No'

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

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==0 and 2*X<=Y<=4*X):
  print('Yes')
else:
  print('No')


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

if(Y%2 & 2*X<=Y<=4*X):
  print('Yes')
else:
  print('No')

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

if(Y%2==0 and 2*X<=Y<=4*X):
  print('Yes')
else:
  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):
a,b=map(int,input().split())
c=a*4
if(b%2==1):
    print("NO")
else:
    if(c<b):
        print("NO")
    else:
        if(((c-b)/2)<=a):
            print("YES")
        else:
            print("NO")

a,b=map(int,input().split())
c=a*4
if(b%2==1):
    print("NO")
else:
    if((c-b)/2<=100):
        print("YES")
    else:
        print("NO")

a,b=map(int,input().split())
c=a*4
if(b%2==1):
    print("No")
else:
    if(c<b):
        print("No")
    else:
        if(((c-b)/2)<=a):
            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())
ans = 'No'

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

print(ans)

X = int(input())
Y = int(input())

flg = 0
for i in range(1, 100):
    j = X - i
    ans = i*2 + j * 4

    if ans == Y:
        print("Yes")
        flg = 1
        break

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


X = int(input())
Y = int(input())

flg = 0
for i in range(1, X):
    j = X - i
    ans = i*2 + j * 4

    if Y == ans:
        print("Yes")
        flg = 1
        break

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


X = int(input())
Y = int(input())

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

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

print("No")


X, Y = map(int, input().split())
ans = 'No'

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

print(ans)

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())
Z = 0
ANS = 'No'
if Y % 2 == 0:
    while X >= 0:
        i = X*2 + Y*4
        if i == Y:
            ANS = 'Yes'
        X -= 1
        Z += 1
        
print(ANS)


X, Y = map(int, input().split())
if ((Y//X) + ((Y*2)//X)) == X:
    print("Yes")
elif X == 1:
    print("Yes")
else:
    print("No")


X, Y = map(int, input().split())
Z = 0
ANS = 'No'
if Y % 2 == 0:
    while X >= 0:
        i = X*2 + Y*4
        if i == Y:
            ANS = 'Yes'
        Z += 1
        X -= 1
print(ANS)


X, Y = map(int, input().split())
Z = 0
ANS = 'No'
if Y % 2 == 0:
    while X >= 0:
        i = X*2 + Z*4
        if i == Y:
            ANS = 'Yes'
        X -= 1
        Z += 1
print(ANS)


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):
a=list(map(int,input().split()))
print(a.index(0)+1)


x,y=map(int,input().split())
if y%2==0 and 2*x<=y and y<=4*x:
  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 = 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")

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

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

XY = input().split()
X = int(XY[0])
Y = int(XY[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")

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):
x,y=map(int,input().split())
s=0
a=0
for i in range(0,x+1):
    if 2*s+4*(x-s)==y:
        a==100
    s=s+i
if a==100:
    print("Yes")
else:
    print("No")







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









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







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







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












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

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

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

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

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

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

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

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(0,X+1):
    fNum = i
    tNum = X-i
    if ((fNum*4)+(tNum*2)==Y):
      print("Yes")
      yes = True
  if not (yes):
    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):
x, y = [int(n) for n in input().split()]

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


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

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


x = [int(n) for n in input().split()]

for i in range(len(x)):
    if x[i] == 0:
        print(i+1)
        exit()


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

for a in range(x+1):
    legs = 2 * a + 4 * (x-a)
    if legs == y:
        print('Yes')
        exit()
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):
a = list(map(int,input().split()))
foot=a[0]
ani=a[1]

crain = (4*ani-foot)/2
if crain.is_integer() and crain > 0:
    print("Yes")
else:
    print("False")

a = list(map(int,input().split()))
X=a[0]
Y=a[1]

crain = (4*X-Y)/2
turtle = (Y-2*X)/2

if crain.is_integer() and crain >= 0:
    if turtle.is_integer() and turtle >= 0:
        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 = y/2 - x 
a = x - b 
if a >=0 and b>= 0:
    print("Yes")
else:
    print("No")

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

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

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


Verdicts: Runtime Error

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
if(c>=0 and c%2==0):
  print('YES')
else:
  print('NO')

X,Y = map(int,input().split())
c = 4*X - Y
if(c>=0 and c%2==0):
  print('YES')
else:
  print('NO')

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

if (X>=Y or Y%2 or Y>4*X or Y<2*X):
  print('No')
elif(Y<=4*X and Y>=2*X)
  print('Yes')


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

if (X>=Y or Y%2 or Y>4*X or Y<2*X):
  print('No')
elif(Y<=4*X and Y>=2*X):
  print('Yes')


Verdicts: Runtime Error

Wrong Answer

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):
import re
import sys
from bisect import bisect, bisect_left, insort, insort_left
from collections import Counter, defaultdict, deque
from copy import deepcopy
from decimal import Decimal
from itertools import (
    accumulate, combinations, combinations_with_replacement, groupby,
    permutations, product)
from math import (acos, asin, atan, ceil, cos, degrees, factorial, gcd, hypot,
                  log2, pi, radians, sin, sqrt, tan)
from operator import itemgetter, mul
from string import ascii_lowercase, ascii_uppercase, digits


def inp():
    return(int(input()))


def inlist():
    return(list(map(int, input().split())))


def instr():
    s = input()
    return(list(s[:len(s)]))


def invr():
    return(map(int, input().split()))


a, b = invr()
res = "NO"
for i in range(a+1):
    if i*2 + (a-i)*4 == b:
        res = "YES"
        break
print(res)


import re
import sys
from bisect import bisect, bisect_left, insort, insort_left
from collections import Counter, defaultdict, deque
from copy import deepcopy
from decimal import Decimal
from itertools import (
    accumulate, combinations, combinations_with_replacement, groupby,
    permutations, product)
from math import (acos, asin, atan, ceil, cos, degrees, factorial, gcd, hypot,
                  log2, pi, radians, sin, sqrt, tan)
from operator import itemgetter, mul
from string import ascii_lowercase, ascii_uppercase, digits


def inp():
    return(int(input()))


def inlist():
    return(list(map(int, input().split())))


def instr():
    s = input()
    return(list(s[:len(s)]))


def invr():
    return(map(int, input().split()))


a, b = invr()
res = "No"
for i in range(a+1):

    if i*2 + (a-i)*4 == b:
        res = "Yes"
        break
print(res)


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<=4*x and (x+y)%2==0:
    print("yes")
else:
    print("no")

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

x,y=map(int,input().split())
if 2*x<=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):
def main():
  x, y =  map(int,input().split())
  fm1 = y - 2 * x
  fm2 = 4 * x - y
  if y % 2 == 0 and fm1 >= 0 and fm2 >= 0:
    print("YES")
  else:
    print("NO")


if __name__ == '__main__':
  main()

def main():
  x, y =  map(int,input().split())
  fm1 = y - 2 * x
  fm2 = 4 * x - y
  if y % 2 == 0 and fm1 >= 0 and fm2 >= 0:
    print("Yes")
  else:
    print("No")


if __name__ == '__main__':
  main()

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

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

low = y//4
high = y//2

if low <= x <= high:
    print("YES")
else:
    print("NO")

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

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 = list(map(int, input().split()))
X =a[0]
Y =a[1]
for n in range(X+1):
    for i in range(X+1):
        if 2*n+4*i ==Y and n +i <=X:
            print("YES")
            break
    else:
        continue
    break
else:
    print("NO")

a = list(map(int, input().split()))
X =a[0]
Y =a[1]
for n in range(X+1):
    if 4*X-2*n ==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
import numpy as np


MODE = 1


DIMENSION = 1


INT_TYPE = 1

if not (MODE):
    with open("input.txt", "r") as f:
        s = f.read()
else:
    s = sys.stdin.read()

if DIMENSION == 0:
    if INT_TYPE == 1:
        s = int(s)
elif DIMENSION == 1:
    if INT_TYPE == 0:
        s = s.split()
    elif INT_TYPE == 1:
        s = [int(x) for x in s.split()]
elif DIMENSION == 2:
    if INT_TYPE == 0:
        s = [x.split() for x in s.splitlines()]
    elif INT_TYPE == 1:
        s = [[int(y) for y in x.split()] for x in s.splitlines()]

x, y = s
a = y - 2 * x
b = 4 * x - y
if a % 2 == 0 and b % 2 == 0 and a >= 0 and b >= 0:
    print("YES")
else:
    print("NO")


import sys
import numpy as np


MODE = 1


DIMENSION = 1


INT_TYPE = 1

if not (MODE):
    with open("input.txt", "r") as f:
        s = f.read()
else:
    s = sys.stdin.read()

if DIMENSION == 0:
    if INT_TYPE == 1:
        s = int(s)
elif DIMENSION == 1:
    if INT_TYPE == 0:
        s = s.split()
    elif INT_TYPE == 1:
        s = [int(x) for x in s.split()]
elif DIMENSION == 2:
    if INT_TYPE == 0:
        s = [x.split() for x in s.splitlines()]
    elif INT_TYPE == 1:
        s = [[int(y) for y in x.split()] for x in s.splitlines()]

x, y = s
a = y - 2 * x
b = 4 * x - y
if a % 2 == 0 and b % 2 == 0 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):
#!/usr/bin/env python3

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

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

low = Y // 4 + (Y % 4 != 0)
high = Y // 2

print(low, high)

if low <= X <= high:
    print('Yes')
else:
    print('No')


#!/usr/bin/env python3

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

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

low = Y // 4 + (Y % 4 != 0)
high = Y // 2

if low <= X <= high:
    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 (1 <= X <= 100) and (1 <= Y <= 100):
  if isinstance(( Y - X ) / 2, int) and isinstance((Y - X) / -2, int)
  	print("Yes")
  else:
    print("No")

X, Y = map(int, input().split())
 
if (1 <= X <= 100) and (1 <= Y <= 100):
  kame = ( Y - (2 * X)) / 2
  turu = (Y - (4 * X)) / -2
  
  if kame.is_integer() and turu.is_integer() and kame >= 0 and turu >= 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):
import sys
X, Y = map(int, input().split())
for i in range(X+1):
  j = X - i
  if 2*i+4*j == Y:
    print('Yes')
    sys.exit()
print('No")

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

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


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

for i in range(1,X+1):
    if i*2 + (X-i)*4 == Y:
        print('YES')
        exit()
print('NO')


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

for i in range(0,X+1):
    if i*2 + (X-i)*4 == 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())
cnt = 0
for b in range(x+1) :
    for t in range(x+1,0,-1) :
        if x == b+t and y == 2*b+4*t :
            print('Yes')
            break
        else :
            cnt += 1
            if cnt == (x+1)*3 :
                print('No')
            else :
                continue

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

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

x,y = map(int, input().split())
a = -y+4*x
b = y-2*x
if(a%2==0 and b%2==0 and a>=0 and b>=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):
animals,legs= map(int,input().split())
if legs%2 !=0 or animals*2>legs or animals*4<legs: print("no")
else: print("yes")


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


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


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 = list(map(int, input("").split()))

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

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

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

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


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

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

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

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



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

ex1 = int(lst[0])
ex2 = int(lst[1])
ret = "no"

for i in range(ex1+1):
    if 4 * (ex1 - i) + 2 * i == ex2:
        ret= "yes"

print(ret)


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

ex1 = int(lst[0])
ex2 = int(lst[1])
ret = "No"

for i in range(ex1+1):
    if 4 * (ex1 - i) + 2 * i == ex2:
        ret= "Yes"

print(ret)


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):
a,b = map(int,input().split())
leg  = 0
for i in range(2**a):
    leg = 0
    for j in range(a):
        if (i & 1 <<j):
            leg +=4
        else:
            leg +=2
    print(leg)
    if leg == b:
        print('Yes')
        exit()
print('No')

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



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

X, Y = map(int, input().split())
a = 0
b = X - a
for i in range(X+1):
  a = i
  b = X - a
  if a * 2 + b * 4 == Y:
    print("YES")
    break
  elif b == 0:
    print("NO")

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

Verdicts: Wrong Answer

Wrong Answer

Accepted