Problem:


Score : 200 points

Problem Statement

There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.

Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Constraints

1 \leq X \leq 100

1 \leq Y \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X Y

Output

If there is a combination of numbers of cranes and turtles in which the statement is correct, print Yes; otherwise, print No.

Sample Input 1

3 8

Sample Output 1

Yes

The statement "there are 3 animals in total in the garden, and they have 8 legs in total" is correct if there are two cranes and one turtle. Thus, there is a combination of numbers of cranes and turtles in which the statement is correct.

Sample Input 2

2 100

Sample Output 2

No

There is no combination of numbers of cranes and turtles in which this statement is correct.

Sample Input 3

1 2

Sample Output 3

Yes

We also consider the case in which there are only cranes or only turtles.



Sample input:
3 8


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
def main():
    s = list(map(int,input().split()))
    num_animals, foots = s[0], s[1]
    flag = 0
    for i in range(0, num_animals, 1):
        # 数
        i += 1
        i, j = i, num_animals - i
        # 判定
        if i * 2 + j * 4 == foots:
            flag += 1
            break
    if flag == 1:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    x,y = map(int,input().split())
    if y % 2  != 0:
        print('No')
    else:
        if ((y - (y//4 * 4)) / 2) + y//4 <= x:
            print('Yes')
        else:
            print('No')



main()

Submission status: Wrong Answer

Solution code:


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


t=[]


if a%2==0:
	t.append(a//2)
    
if a%4==0:
	t.append(a//4)

if a%6==0:
	t.append(a//6)

if (a%4)%2==0:
  t.append(a//4+(a%4)//2)

if b in t:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:



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


if a*2<=b<=a*4:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

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

import sys

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

Submission status: Wrong Answer

Solution code:
#abc170
x, y = map(int, input().split())
if 2*x - y/2 == int(2*x - y/2) and 2*x - y/2 >= 1 :
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import statistics
import math
import datetime
from collections import Counter
import itertools

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

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

aa: int = (y / 2) - x

if aa < 0:
    print("No")

bb: int = x - aa

if bb >= 0:
    print("Yes")

else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b=[int(i) for i in input().split()]
if(b%2!=0):
    print("No")
else:
    c=b//2
    d=b//4
    if(a>=d and a<=c):
        print('Yes')
    else:
        print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if((x == 1 and y == 2) or (x == 1 and y == 4)):
  print('Yes')
elif(x>0):
  for i in range(0,101):
    z = 2
    if(x*2+i*z == y):
      print('Yes')
    else:
      print('No')
      break            
else :
  print('No')

Submission status: Wrong Answer

Solution code:
from sys import stdin
 
input_num = stdin.readline().strip().split(" ")

X = int(input_num[0])
Y = int(input_num[1])
if Y % 2 != 0:
  print("No")
else:
  if X * 4 < Y:
    print("No")
  else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if((x == 1 and y == 2) or (x == 1 and y == 4)):
  print('Yes')
elif(x*2+2 == y):
  print('Yes')
elif(x>3):
    for i in range(x):
        z = 2
        if(x*2+i*z == y):
            print('Yes')            
else :
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if y>=2*x and 4*x>=y:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import sys
anl= list(map(int,input().split()))
animals = anl[0]
legs = anl[1]
cranes = int()
turtles = int()
candt = cranes + turtles
if legs < animals:
    print("No")
    sys.exit()
cranes = 0
while cranes <= animals and turtles <= animals and turtles <= 100 and cranes <= animals:
  turtles = 0
  while turtles != (animals+1):
      totalLegs = (2*cranes) + (4*turtles)
      if totalLegs == legs:
          print("Yes")
          sys.exit()
      turtles += 1
      continue
  cranes += 1
if totalLegs != legs:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
ans = 'No'
X, Y = [int(_) for _ in stdin.readline().rstrip().split()]
for i in range(1, X+1):
    if i*2 + (X-i)*4 == Y:
        ans = 'Yes'
        break
print(ans)

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
asi = 2*X
for i in range(X):
    if asi == Y:
        print("Yes")
        exit()
    else:
        asi += 2
print("No")

Submission status: Wrong Answer

Solution code:
x, y  = map(int, input().split())
if(y & 1):
  print("NO")
elif(y/2 < x or y > 4*x):
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

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

#a+b=x
#2a+4b=y
#2a=4x-y

z=int(y-(2*x))

if (z%2==0)and(x-z/2)>0 :
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
#X匹Y本の組み合わせが存在するか判定。鶴の数を基準に連立方程式を解いて、鶴の数が正の整数であればYES
X,Y = map(int,input().split())
a = (4 * X - Y) / 2
if a.is_integer() and 0 <= a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
#X匹Y本の組み合わせが存在するか判定。鶴の数を基準に連立方程式を解いて、鶴の数が正の整数であればYES
X,Y = map(int,input().split())
a = (4 * X - Y) / 2
if a.is_integer() and 0 <= a:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
#X匹Y本の組み合わせが存在するか判定。鶴の数を基準に連立方程式を解いて、鶴の数が正の整数であればYES
X,Y = map(int,input().split())
a = (4 * X - Y) / 2
if a.is_integer() and 0 <= a <= X:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if((x == 1 and y == 2) or (x == 1 and y == 4)):
  print('Yes')
elif((x*2+2 == y) or (x*2+4 == y) or (x*2+6 == y) or 
(x*2+8 == y) or (x*2+10== y) or (x*2+12==y)):
    print('Yes')            
else :
    print('No')

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if((x == 1 and y == 2) or (x == 1 and y == 4)):
  print('Yes')
elif (x>3):
    for i in range(0,y):
        if(x*2+i == y):
            print('Yes')
            break
        else :
            print()          
else :
    print('No')

Submission status: Wrong Answer

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

print('Yes' if any(x * 2 + i * 2 for i in range(x + 1)) else 'No')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

vr_total = 4*a
diff = vr_total - b
turu = diff / 2
kame = a -turu

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

vr_total = 4*a
diff = vr_total - b
turu = diff / 2
kame = a -turu

if turu*2+kame*4 == b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
min = x*2
max = x*4
if y//2 == 1:
  print("No")
elif min <= y and y <= max:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
print('YNeos'[y%2==1 or x*4<y::2])

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if(x*2==y):
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
X,Y = list(map(int, input().split()))
solve = -((Y-4*X)/2)
if Y%2 != 0:
  print("No")
elif solve>0 and int(solve) == solve:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
X,Y = list(map(int, input().split()))
solve = -((Y-4*X)/2)
if solve>0 and int(solve) == solve:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if x[1] % 2 > 0 or x[1] > x[0] * 4:
	print('No')
else:
	print('Yes')

Submission status: Wrong Answer

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

if x[1] % 2 > 0 or x[1] >= x[0] * 4:
	print('No')
else:
	print('Yes')

Submission status: Wrong Answer

Solution code:
X,Y=[int(s) for s in input().split()]
a = 2*X-Y/2
b = -X+Y/2
if ((float(a).is_integer()==True) & (float(b).is_integer()==True)):
        print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

for a in range(101):
  b = X - a
  if 2 * a + 4 * b == Y:
    print('Yes')
    exit()
print('No')

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
val = Y - 2 * X

if val >= 0 and val % 2 == 0:
 	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

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

# check
if 4 * X < Y or abs(Y - 2 * X) % 2 != 0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

# check
if Y >= 2 * X and (Y - 2 * X) % 2 == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# B - Crane and Turtle
x, y = map(int, input().split())

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

print('NO')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

# B - Crane and Turtle
x, y = map(int, input().split())

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

print('NO')

Submission status: Wrong Answer

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

#a+b=x
#2a+4b=y
#2b=y-2x

if ((y-(2*x))%2==0)&(x-((y-(2*x))%2))>0 :
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

#a+b=x
#2a+4b=y
#2b=y-2x

b=(y-(2*x))%2

if (b==0)&(x-b>0) :
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
X,Y = input().split(' ')
x = int(X)
y = int(Y)
if 2*x <= y <=4*x:
    print('Yes')

else:
    print('No')

Submission status: Wrong Answer

Solution code:
arr = list(map(int, input("").split()))
x=2*arr[0]
y=4*arr[0]

if arr[1]>=x and arr[1]<=y and arr[1]%2==0:
    print("YES")
else :
    print("NO")

Submission status: Wrong Answer

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


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


print('No')

Submission status: Wrong Answer

Solution code:
import math
T,L = map(int,input().split())
n = (4*T - L)/2
if math.floor(n) == math.ceil(n):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

if a+b<=100 and a>=0 and b>=0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input().split()
for i in range(int(s[0])+1):
	if((i * 2 + ((int(s[0])) - i) * 4) == int(s[1])):
		hantei = "OK"
		break
	else:
		hantei = "NG"
if(hantei == "NG"):
	print("NO")
else:
	print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,m = map(int,input().split())
c=0
for i in range(1,n+1):
  if(i*2 + (n-i)*4 == m): c=1
print("YES" if c==1 else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N, M=map(int, input().split())
if M%2!=0 or M>4*N:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
ans = False
for i in range(int(x)+1):
  j = int(x) - i
  if int(y) == 2*i + 4*j:
    ans = True
    break

if ans:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y =map(int, input().split())  #複数数値入力
result = 0
for i in range(1, x+1):
    leg = i * 2 +(x-i) * 4

    if leg == y:
        result = 1

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

Submission status: Wrong Answer

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

if c!=0 or a<0:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
X, Y = [int(x) for x in input().strip().split()]
for t in range(1, X+1):
  c = X - t
  if 4 * t + 2 * c == Y:
    print('Yes')
    break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# 日本語を入力できるようにするために上記一文が必要


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

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# 日本語を入力できるようにするために上記一文が必要


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

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

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

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

print(res)

Submission status: Wrong Answer

Solution code:
import sys

argv = input().split()

X = int(argv[0])
Y = int(argv[1])
success = 0

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

if success == 0:
  print ("no")
else:
  print ("yes")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# 日本語を入力できるようにするために上記一文が必要


x, y = map(int, input().split())
if y > 4*x or  2*x >y:
        print("NO")
elif (4*x - y) % 2 == 0:
        print("Yes")
else:
        print("NO")

Submission status: Wrong Answer

Solution code:
import sys

argv = input().split()

X = int(argv[0])
Y = int(argv[1])
success = 0

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

if success == 0:
  print ("no")
else:
  print ("yes")

Submission status: Wrong Answer

Solution code:
import sys

argv = input().split()

X = int(argv[0])
Y = int(argv[1])
success = 0

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

if success == 0:
  print ("no")
else:
  print ("yes")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
ok = False
for i in range(1, 101):
    for j in range(1, 101):
        if i+j == x and 2*i+4*j == y:
            ok = True

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
ans = "No"
max_x = x * 4

if y <= max_x:
    if y % 2 == 0 or y % 4 == 0:
        ans = "Yes"

print(ans)

Submission status: Wrong Answer

Solution code:
n , m = map(int , input().split())
print('Yes') if (m - 2 * n) % 2 ==0 else print('No')

Submission status: Wrong Answer

Solution code:
n , m = map(int , input().split())
a = (m-2*n) / 2
if isinstance(a,int):
    print('Yes')
else:   print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x,y=[int(i) for i in input().strip().split(' ')]
var='Yes'
if y<x or y%2 != 0 or y>4*x:
	var='No'
print(var)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split(" "))
turu = (4*x - y)/2
kame = x - turu
if (turu*2+kame*4==y)and(turu>=0 and kame>=0):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

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

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

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

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

Submission status: Wrong Answer

Solution code:
X, Y = (int(x) for x in input().split())
ans = 'Yes'
if Y % 2 != 0 or X * 4 < Y: ans = 'No'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#-*- coding -*-
a,b = map(int, input().split())
f = False
for i in range(a):
  if i * 2 + (a - i) * 4 == b:
    f = True
    
if f:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
crane = 2
turtle = 4

while(crane + turtle) != Y:
    a = crane + crane
    if Y == crane or Y == turtle:
        print("Yes")
        break
    elif a + turtle == Y:
        print("Yes")
        break
    else:
        print("No")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for x in range(int(X)):
    a = x + 1
    b = int(X) - a
    y = 4*a + 2*b
    if int(Y) == y:
        counter = 1
        break

if counter == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

print("No")

Submission status: Wrong Answer

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

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

print("No")

Submission status: Wrong Answer

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

counter = 0

for x in range(int(X)):
    a = x + 1
    b = int(X) - a
    if 2*a + 4*b == int(Y):
        counter = 1
        break

if counter == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

print("No")

Submission status: Wrong Answer

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

counter = 0

for x in range(int(X)):
    a = x + 1
    b = int(X) - a
    if 2*a + 4*b == int(Y):
        counter = + 1

if counter >= 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

print("No")

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from __future__ import division, print_function
import os
import sys
from __builtin__ import xrange as range
from cStringIO import StringIO
from future_builtins import ascii, filter, hex, map, oct, zip
from io import IOBase
import __pypy__

# region fastio
BUFSIZE = 8192
class FastI(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = StringIO()
        self.newlines = 0

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count("\n") + (not b)
            ptr = self._buffer.tell()
            self._buffer.seek(0, 2), self._buffer.write(b), self._buffer.seek(ptr)
        self.newlines -= 1
        return self._buffer.readline()
class FastO(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = __pypy__.builders.StringBuilder()
        self.write = lambda s: self._buffer.append(s)
    def flush(self):
        os.write(self._fd, self._buffer.build())
        self._buffer = __pypy__.builders.StringBuilder()
def print(*args, **kwargs):
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()
sys.stdin, sys.stdout = FastI(sys.stdin), FastO(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

Ri = lambda : [int(x) for x in sys.stdin.readline().split()]
ri = lambda : sys.stdin.readline().strip()

# from types import GeneratorType
# def bootstrap(func, stack=[]):
#     def wrapped_function(*args, **kwargs):
#         if stack:
#             return func(*args, **kwargs)
#         else:
#             call = func(*args, **kwargs)
#             while True:
#                 if type(call) is GeneratorType:
#                     stack.append(call)
#                     call = next(call)
#                 else:
#                     stack.pop()
#                     if not stack:
#                         break
#                     call = stack[-1].send(call)
#             return call
#     return wrapped_function

def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
INF = 10 ** 18
MOD = 10**9+7


x,y = Ri()
val = (y-2*x)/2

if ceil(val) == val:
    y = x-ceil(val)
    if x >= 0 and y >= 0:
        Yes()
    else:
        No()
else:
    No()

Submission status: Wrong Answer

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

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

print("No")

Submission status: Wrong Answer

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

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

print("No")