Problem:
 Score : 200 points    Problem Statement There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.      Constraints  1 \leq X \leq 100  1 \leq Y \leq 100  All values in input are integers.         Input Input is given from Standard Input in the following format:  X  Y       Output If there is a combination of numbers of cranes and turtles in which the statement is correct, print Yes ; otherwise, print No .        Sample Input 1 3 8      Sample Output 1 Yes  The statement "there are 3 animals in total in the garden, and they have 8 legs in total" is correct if there are two cranes and one turtle. Thus, there is a combination of numbers of cranes and turtles in which the statement is correct.       Sample Input 2 2 100      Sample Output 2 No  There is no combination of numbers of cranes and turtles in which this statement is correct.       Sample Input 3 1 2      Sample Output 3 Yes  We also consider the case in which there are only cranes or only turtles.

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

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

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

print('No')

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

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

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

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

Solution (Python):
a = input().split(" ")
h = int(a[0])
l = int(a[1])
if l % 2 == 1:
    print("No")
elif l / 2 < h:
    print("No")
elif l / 4 > h:
    print("No")
else:
    print("Yes")

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

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

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

if Y%2 == 1:
    print("No")
else:
    Tsuru = 2*X -Y/2
    Kame  = -X + Y/2
    if Tsuru < 0 or Kame < 0:
        print("No")
    else:
        print("Yes")

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

foot = 0
flag = False
for i in range(X+1):
    foot = i*2 + (X-i)*4
    if foot == Y:
        flag = True
        break


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

Solution (Python):
def main():
    import sys
    X, Y = map(int, sys.stdin.readline().split())
    
    
    a = (4*X -Y)/2
    b = (-2*X+Y)/2
    if int(a)==a and int(b)==b:
        if a>=0 and b>=0:
            print('Yes')
        else:
            print('No')
    else:
        print('No')







if __name__=='__main__':
    main()

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

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

Solution (Python):
X,Y =map(int,input().split())
A=-1
if Y%2 ==1:
    print('No')
    A=0
if 2*X <= Y <= 4*X and A !=0:
    print('Yes')
elif A!= 0:
    print('No')

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

count = 0
for cnt_tsuru in range(x+1):
    cnt_kame = x - cnt_tsuru
    if y == 2 * cnt_tsuru + 4 * cnt_kame:
        count += 1
if count != 0:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
x,y=map(int,input().split())
miss=False
if (y-2*x)%2==1:
  miss=True
else:
  b=(y-2*x)//2
  if not 0<= b<=x:
    miss=True
if miss:
  print('No')
else:
  print('Yes')

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

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

print('No')

Solution (Python):
'''     
        
        
        

import sys
import math


def get_ints(): return map(int, input().strip().split())
def get_list(): return list(get_ints())

def printspx(*args): return print(*args, end="")
def printsp(*args): return print(*args, end=" ")
def printchk(*args): return print(*args, end=" \ ")

MODPRIME = int(1e9+7); BABYMODPR = 998244353;

ONLINE_JUDGE = 1
if not ONLINE_JUDGE:
    sys.stdin = open("input.txt","r")  
    sys.stdout = open("output.txt","w")  
    sys.stderr = open("output.txt","w")  


x, y = get_ints()
flag = True
b = (y-2*x)/2
if math.floor(b) != b or b < 0:
    flag = False
if flag:
    a = x-b
    if a < 0 :
        flag = False
if flag:
    print("Yes")
else:
    print("No")

'''
>>> COMMENT THE STDIN!! CHANGE ONLINE JUDGE !!
THE LOGIC AND APPROACH IS BY ME @luctivud ( UDIT GUPTA )
SOME PARTS OF THE CODE HAS BEEN TAKEN FROM WEBSITES LIKE::
(I Own the code if no link is provided here or I may have missed mentioning it)
DO NOT PLAGIARISE.
TESTCASES:
>>> COMMENT THE STDIN!! CHANGE ONLINE JUDGE !!
'''

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

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

   

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

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

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

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    main()

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

Solution (Python):
from sys import exit
X,Y = map(int,input().split())

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

print("No")

Solution (Python):
animal, leg = map(int, input().split())

answer = 'No'

for i in range(0, animal+1):
    temp = 2 * i + 4 * (animal-i)
    if temp == leg:
        answer = 'Yes'
        break

print(answer)

Solution (Python):
import sys
input = sys.stdin.readline
def main():
    X, Y = map(int, input().split())
    ans = "No"
    for i in range(101):
        for j in range(101):
            if i + j == X and 2 * i + 4 * j == Y:
                ans = "Yes"
                break
    print(ans)
if __name__ == "__main__":
    main()

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

min=2*x
max=4*x
flag=0

for tmp in range(min,max+1,2):
    if tmp == y:
        flag=1

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

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

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

res = "No"
x = (4*X-Y)
y = (Y-2*X)

if x>=0 and y>=0 and x%2==0 and y%2==0:
    res = "Yes"

print(res)

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

s=2*x-y/2
t=int(s)

ans="No"

if s >= 0 :
  if s==t :
    if s <= x:
      ans="Yes"

print(ans)

Solution (Python):
a,b= map(int, input().split())
if a * 2 <= b and b <= a * 4:
    for p in range(b):
        if a * 2 + p * 2 == b:
            print("Yes")
            exit()
print("No")

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

tsuru = x
kame = 0

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

print('No')

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

    for a in range(1,X+1):
        b = X -a
        if (2*a) + (4*b) == Y:
            return 'Yes'

    if X*4 == Y:
        return 'Yes'

    return 'No'

print(main())

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

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

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
x, y = M()
ans = 'No'
for i in range(x+1):
    for j in range(x+1):
        if i + j == x and i*2 + j*4 == y:
            ans = 'Yes'

print(ans)

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

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

X=arr[0]
Y=arr[1]


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

Y2=Y/2
if Y2<X :
	print('No')
	exit()
if X*2<Y2 :
	print('No')
	exit()

print('Yes')

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

print('No')

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

if float.is_integer(-x + y/2) and float.is_integer(2 * x - y/2) and (0 <= 2 * x - y/2) and (0 <= -x + y/2):
    print("Yes")
else:
    print("No")

Solution (Python):
x, y = map(int, input().split())
crane = 2 * x - y / 2
turtle = y / 2 - x

if crane < 0 or turtle < 0:
    print('No')
elif crane.is_integer() and turtle.is_integer():
    print('Yes')
else:
    print('No')

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

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

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

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

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

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

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

Solution (Python):
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left
from functools import reduce
from decimal import Decimal, getcontext

def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_list(N): return [s_list() for _ in range(N)]
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7

def main():
    x, y = i_map()

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

    print('No')

if __name__ == '__main__':
    main()

Solution (Python):
flag = 0
lst = input().split()
lst[0]=int(lst[0])
lst[1]=int(lst[1])
if lst[1]%2 == 1 :
    flag =1
if lst[0] < lst[1]/4 :
    flag = 1
if lst[0] > lst[1]/2 :
    flag = 1

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

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

Solution (Python):
X, Y = (int(i) for i in input().split())  

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

Solution (Python):
x, y = [int(x) for x in input().split()]
c, t = x, 0
flag = False
for i in range(x+1):
    if 2*c + 4*t == y:
        print("Yes")
        flag = True
    c -= 1
    t += 1
if not flag:
    print("No")

Solution (Python):
x = list(map(lambda x:int(x), input().split()))
X = x[0]
Y = x[1]

kame = (Y-X*2)//2


if kame >= 0 and X-kame >= 0 and Y - kame*4 == (X-kame)*2:
  print("Yes")
else:
  print("No")

Solution (Python):
import math
import sys
x, y = map(int, input().split())
a = (4 * x - y) / 2
if y % 2:
    print('No')
    sys.exit()
if a >= 0 and a <= x:
    if math.floor(a) == int(a):
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))

X, Y = MAP()

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

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

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

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

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

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

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

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

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

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

Solution (Python):
def _main(x, y):
    b = (y - 2 * x) // 2
    a = x - b

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


_main(*map(int, input().split()))

Solution (Python):


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

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

Solution (Python):
X,Y = map(int,input().split())
flag = 1
if Y %2 ==1:
    flag=0

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

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

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

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

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

Solution (Python):
if __name__=="__main__":
    
    X, Y = map(int, input().split(' '))
    ans = "No"
    for i in range(X):
        if i*2 + (X-i)*4 == Y or i*4 + (X-i)*2 == Y:
            ans = "Yes"
            break
    print(ans)

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    X, Y = LI()

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

    print(ans)

if __name__ == '__main__':
    resolve()

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

tmp = 4 * x - y
f = 0
if tmp % 2 == 0 and tmp >= 0:
    crane = tmp / 2
    turtle = x - crane
    if turtle >= 0:
        f = 1
    else:
        pass
else:
    pass

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

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

D = 4 * X - Y
if D % 2 == 0:
    p = D // 2
    if 0 <= p <= X:
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

result="No"
if Y%2==0:
    for i in range(X+1):
        if Y==i*2+(X-i)*4:
            result="Yes"
print(result)

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

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

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

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

Solution (Python):

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

Solution (Python):
def main():
	X, Y = map(int, input().split(" "))
	for a in range(X+1):
		if (2*a + 4*(X-a)) == Y:
			print("Yes")
			return
	print("No")
    
      
if __name__ == "__main__":
  main()

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

xx = X * 2

if Y % 2 != 0:
    print("No")
elif xx > Y:
    print("No")
elif (Y - xx) / 2 > X:
    print("No")
else:
    print("Yes")

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

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

print('No')

Solution (Python):
S = input().split()
X = int(S[0])
Y = int(S[1])

Boo = False

tsuru = 0
kame = 0

for i in range(X+1):
    tsuru  = i*2
    kame = (X-i)*4
    if tsuru + kame == Y:
        Boo = True

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

Solution (Python):
x,y =[int(x) for x in input().split()]

t = (y - 2*x)

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

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

c=0

for x in range(X+1):
  for y in range(Y+1):
    if X==x+y and Y==2*x+4*y:
      print('Yes')
      c=1
      break
      
if c==0:
  print('No')

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

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

flag=False

for a in range(0,101):
    b=X-a
    if ((2*a + 4*b==Y) and (b>=0)):
        flag=True
        break

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

Solution (Python):









import os
import sys


from numpy.linalg import solve

def main():
    x,y=map(int,input().split())
    left=[[1,1],[2,4]]
    right=[x,y]
    a=solve(left,right)
    if a[0].is_integer() and a[1].is_integer() and a[0]>=0 and a[1]>=0:
        print("Yes")
    else:
        print("No")



if __name__ == "__main__":
    main()

Solution (Python):


x,y = map(int, input().split())
leg2 = 0 
leg4 = x
flg =  0
while(leg4!=-1):
    if leg2*2 + leg4*4 == y:
        flg = 1
        break
    else:
        leg2 += 1
        leg4 -= 1
    

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

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

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

a = (y-2*x) 

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

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

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

Solution (Python):

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




if 4*X - Y < 0 or Y - 2*X < 0:
    print("No")
    exit()

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

    else:
        print("No")

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

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

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

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

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

elif 2*X-Y/2 >=0 and Y/2-X>=0:
    print("Yes")

else:
    print("No")

Solution (Python):
import itertools

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

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

print(answer)

Solution (Python):
x,y = (int(x) for x in input().split())
if y%2 != 0:
  print("No")
elif -2*x + y < 0 or 4*x-y < 0:
  print("No")
else:
  print("Yes")

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

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

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

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

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

ttt = 0
for i in range(x+1):
    leg = 2 * i + 4 * (x - i)
    if leg == y:
        ttt = leg
        print("Yes")

if ttt != y:
    print("No")

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

Solution (Python):
input_line = list(map(int,input().split(' ')))

if(2*input_line[0]>input_line[1]):
    print('No')
elif(4*input_line[0]<input_line[1]):
    print('No')
elif(input_line[1]%2!=0):
    print('No')
else:
    leg = input_line[0]*2
    for i in range(input_line[0]+1):
        if(leg+i*2):
            print('Yes')
            break
    else:
        print('No')

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

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

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

for i in range(x+1):
    if 2*i+4*(x-i) == y:
        f = True

if f:
    print('Yes')

else:
    print('No')

Solution (Python):

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

turtle_num = (Y - 2 * X) / 2
crain_num = X - turtle_num
ans = turtle_num * 4 + crain_num * 2
if turtle_num % 1 == 0 and crain_num % 1 == 0 and turtle_num >= 0 and crain_num >= 0:
    print("Yes")

else:
    print("No")

Solution (Python):





import sys
import heapq

def main():
    a, b = map(int, input().split())
    n, m = 0, 0
    
    n = (4 * a - b)
    m = (b - 2 * a)

    if n < 0 or m < 0 or n % 2 or m % 2:
        print("No")
    else:
        print("Yes")
    
    return

if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline
def main():
    X,Y = map(int, input().split())
    for i in range(0,X+1):
        if (i*2 + (X-i)*4) == Y:
            print("Yes")
            break
    else:
        print("No")

if __name__ == '__main__':
    main()

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

K = (Y-2*X)/2

if K >= 0 and K <= X and K.is_integer():
  print('Yes')
else:
  print('No')

Solution (Python):

import sys,io,os,time
from collections import defaultdict
from collections import OrderedDict
from collections import deque
from itertools import combinations
from itertools import permutations
import bisect,math,heapq
alphabet = "abcdefghijklmnopqrstuvwxyz"

input = sys.stdin.readline





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

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

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

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

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

print('No')

Solution (Python):
import io,sys
sys.setrecursionlimit(10**6)


def main():
    X,Y = map(int,sys.stdin.readline().rstrip().split())

    y = (Y-2*X)/2
    x = X-y

    if y>=0 and y == int(y) and x >= 0:
        print("Yes")
    else:
        print("No")
main()

Solution (Python):
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 i*2+j*4==y:
            flag=True
            break
if flag:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

print("No")

Solution (Python):
X, Y = map(int, input().split())
cranex2 = 4 * X - Y
turtlex2 = Y - 2 * X
print('Yes' if cranex2 % 2 == 0 and cranex2 >= 0 and turtlex2 % 2 == 0 and turtlex2 >= 0 else 'No')

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

ans='No'
for a in range(50+1):
    for b in range(25+1):
        x=a+b
        y=2*a+4*b
        
        if x==X and y==Y:
            ans='Yes'

print(ans)

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

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

Solution (Python):
[_x, _y] = list(map(int, input().split(" ")))
_flag = False
for _i in range(_x + 1):
  if _i * 2 + (_x - _i) * 4 == _y:
    _flag = True

if _flag == True:
  print("Yes")
else:
  print("No")

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

Solution (Python):
def main1():
    A,B=map(int,input().split())
    for x in range(0,401):
        for y in range(0,401):
            if x+y==A and 2*x+4*y==B:
                print("Yes")
                return 
    print("No")
     
main1()

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


if __name__ == '__main__':
    main()

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

Solution (Python):


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

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

print(ans)

Solution (Python):
X, Y = map(int, input().split())
flag = False
for x in range(X+1):
    kame = x
    turu = X - x

    if 4 * kame + 2 * turu == Y:
        flag = True

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

Solution (Python):
import sys
import os
import itertools
from collections import deque

def main():
    if os.getenv("ENV")=='LOCAL':
        sys.stdin = open(os.path.dirname(__file__)+'/input.txt', 'r')

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

    x=Y/2-X
    y=2*X-Y/2

    if x>=0 and y>=0 and x.is_integer() and y.is_integer():
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

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

Solution (Python):
line = input().split()
line=[int(i) for i in line]

turu=line[0]*2
kame=line[0]*4

if line[1]%2==0 and line[1]>=turu and line[1]<=kame:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys



if(__name__ == "__main__"):

    XY = input().strip().split()
    N_Animals = int(XY[0])
    N_Legs = int(XY[1])

    N_Turtles = (N_Legs - 2 * N_Animals) / 2
    N_Cranes = N_Animals - N_Turtles
    if(N_Turtles >= 0 and N_Cranes >= 0 and N_Turtles == int(N_Turtles) ):
        print("Yes")
    else:
        print("No")

Solution (Python):
x, y = [int(_) for _ in input().split()]

ans = 'No'

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

print(ans)

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

Solution (Python):
def main(x, y):
    if y in (x * 2, x * 4):
        print("Yes")
        return

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

    print("No")


if __name__ == "__main__":
    x, y = map(int, input().split())

    main(x, y)

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

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

Solution (Python):
animals, legs = input().split()
animals = int(animals)
legs = int(legs)

for i in range(0,animals+1):
  if ((i * 2) + ((animals - i) * 4)) == legs:
    result = True
    break
  result = False

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

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