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

tsuru = 0
kame = 0

kame = (Y - 2 * X) / 2

if kame.is_integer() & (kame >= 0) & (kame <= X):
  print("Yes")
else:
  print("No")

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

print(ans)

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

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

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

Solution (Python):
a,b = map(int, input().split()) 
if a*2>b:
    print("No")
    exit()
    

num=a*4
while 1:
    if num==b:
        print("Yes")
        exit()
        
    elif num<b:
        break
    num=num-2        
    
print("No")

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



if Y < 2 * X:
    print('No')
    exit()
elif Y > 4 * X:
    print('No')
    exit()

y = (Y - 2 * X)


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

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

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

print("No")

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

Solution (Python):




from __future__ import division, print_function 

import sys
import os
from collections import Counter, deque, defaultdict
import itertools
import math
import io


"""Uncomment modules according to your need"""













if sys.version_info[0] < 3:
    input = raw_input
    range = xrange

    filter = itertools.ifilter
    map = itertools.imap
    zip = itertools.izip



"""value of mod"""
MOD = 998244353
mod = 10**9 + 7

"""Uncomment next 4 lines if doing huge recursion"""




def prepare_factorial(mod=mod):
    """ returns two lists, factorial and inverse factorial modulo argument by default 10**9 +7 """
    
    fact = [1]
    for i in range(1, 200005):
        fact.append((fact[-1] * i) % mod)

    ifact = [0] * 200005
    ifact[200004] = pow(fact[200004], mod - 2, mod)
    for i in range(200004, 0, -1):
        ifact[i - 1] = (i * ifact[i]) % mod

    return fact, ifact

def modinv(n, p):
    """ returns N inverse modulo p """
    return pow(n, p - 2, p)

def ncr(n, r,  fact, ifact):
    """ takes 4 arguments: n , r and factorial and inverse factorial lists"""
    t = (fact[n] * (ifact[r]*ifact[n-r]) % MOD)% MOD
    return t


def get_n(Sum):    
    """this function returns the maximum n for which Summation(n) <= Sum"""
    ans = (-1 + sqrt(1 + 8*Sum))//2
    return ans

def sieve(n):
    """ returns a list of prime numbers till n """
    if n < 2: return list()
    prime = [True for _ in range(n + 1)]
    p = 3
    while p * p <= n:
        if prime[p]:
            for i in range(p * 2, n + 1, p):
                prime[i] = False
        p += 2
    r = [2]
    for p in range(3, n + 1, 2):
        if prime[p]:
            r.append(p)
    return r



def divs(n, start=1):
    """ returns a list of all divisors till n """
    divisors = []
    for i in range(start, int(math.sqrt(n) + 1)):
        if n % i == 0:
            if n / i == i:
                divisors.append(i)
            else:
                divisors.extend([i, n // i])
    return divisors



def divn(n, primes):
    """ returns the number of divisors, two arguments n and the sieve till n """
    divs_number = 1
    for i in primes:
        if n == 1:
            return divs_number
        t = 1
        while n % i == 0:
            t += 1
            n //= i
        divs_number *= t



def lrfind(d, x, default=-1):
    """ Takes 2 arguments an iterable and an element. returns a tuple (firstoccurence,lastoccurence) -1 if not found """
    left = right = -1
    for i in range(len(d)):
        if d[i] == x:
            if left == -1: left = i
            right = i
    if left == -1:
        return default, default
    else:
        return left, right

def gcd(x, y): 
    """ returns greatest common divisor of x and y """
    while y:
        x, y = y, x % y
    return x

def check_sorted(a):
    ''' returns True/False '''
    for i in range(len(a)-1):
        if a[i]>a[i+1]:
            return False
    return True
def ceil(n, k=1): return n // k + (n % k != 0) 
def input(): return sys.stdin.readline().strip()
def ii(): return int(input()) 
def mi(): return map(int, input().split()) 
def li(): return list(map(int, input().split())) 
def lw(): return input().split() 
def lcm(a, b): return abs(a * b) // gcd(a, b) 
def prr(a, sep=' ', end='\n'): print(sep.join(map(str, a)), end=end) 
def dd(): return defaultdict(int) 
def ddl(): return defaultdict(list) 
def write(s): return sys.stdout.write(s)













def main():
    
    x,y=mi()
    if (y%2!=0):
        print("No")
        return
    if (y//2<x):
        print("No")
        return
    if (y/2==x):
        print("Yes")
        return
    
    if(y/4 >x):
        print("No")
        return

    if(y/4==x):
        print("Yes")
        return
    print("Yes")

        











































""" -------- Python 2 and 3 footer by Pajenegod and c1729 ---------"""

py2 = round(0.5)
if py2:
    from future_builtins import ascii, filter, hex, map, oct, zip
    range = xrange

import os, sys
from io import IOBase, BytesIO

BUFSIZE = 8192

class FastIO(BytesIO):
    newlines = 0

    def __init__(self, file):
        self._file = file
        self._fd = file.fileno()
        self.writable = "x" in file.mode or "w" in file.mode
        self.write = super(FastIO, self).write if self.writable else None

    def _fill(self):
        s = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
        self.seek((self.tell(), self.seek(0, 2), super(FastIO, self).write(s))[0])
        return s

    def read(self):
        while self._fill(): pass
        return super(FastIO, self).read()

    def readline(self):
        while self.newlines == 0:
            s = self._fill();
            self.newlines = s.count(b"\n") + (not s)
        self.newlines -= 1
        return super(FastIO, self).readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.getvalue())
            self.truncate(0), self.seek(0)


class IOWrapper(IOBase):

    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        if py2:
            self.write = self.buffer.write
            self.read = self.buffer.read
            self.readline = self.buffer.readline
        else:
            self.write = lambda s: self.buffer.write(s.encode('ascii'))
            self.read = lambda: self.buffer.read().decode('ascii')
            self.readline = lambda: self.buffer.readline().decode('ascii')


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip('\r\n')



""" main function"""

if __name__ == '__main__':
    main()

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

ans = 0
for c in range(X+1):
    for t in range(X+1):
        if c + t == X and c*2 + t*4 == Y:
            ans += 1

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

Solution (Python):
X, Y = map(int, input().split())
a=2*X-(1/2)*Y
b=-1*X+(1/2)*Y
if a.is_integer() and b.is_integer():
    if (a>=0 and b>0) or (a>0 and b>=0):
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

Solution (Python):

import sys
A,B=map(int,input().split())
if(B%2!=0):
    print("No")
    exit()
y=B-(2*A)
if y%2 or y<0:
    print("No")
    exit()
y=y//2
x=A-y
if x<0:
    print("No")
    exit()
print("Yes")

Solution (Python):
import sys 
from collections import deque
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

def main():
    x,y = IL()
    if 4*x<y or y%2!=0:
        print('No')
        exit()
    for i in range(x+1):
        if 4*i+2*(x-i)==y:
            print('Yes')
            exit()
    print('No')
    return

if __name__=='__main__':
    main()

Solution (Python):
x, y = map(int,input().split())
c = (4.0*x-y) / 2.0
t = (y-2.0*x) / 2.0

if (c >= 0) and (int(c) - c == 0):
    if (t >= 0) and (int(t) - t == 0):
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

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

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

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

if y/2-x <0 or 2*x-y/2<0:
  print("No")
  sys.exit()
if y//2!=y/2 :
  print("No")
  sys.exit()
print("Yes")

Solution (Python):
import math
def ip():return int(input())
def imp():return map(int,input().split())
def impstr():return map(str,input().split())
def limp():return list(map(int,input().split()))
def limpstr():return list(map(str,input().split()))

a,b=imp()
for i in range(0,a+1):
    if i*2+(a-i)*4==b:
        print("Yes")
        exit()
print("No")

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

flg = True

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

Solution (Python):
x, y = map(int, input().split())
F = True
for turu in range(0,101):
    for kame in range(0, 101):
        if turu + kame == x and 2*turu + 4*kame == y:
            print('Yes')
            F = False
            
if F:
    print('No')

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

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

Solution (Python):
from sys import stdin
X, Y = [int(x) for x in stdin.readline().rstrip().split()]
res = "No"
for i in range(X+1):
  if 2*i + (X-i)*4 == Y:
    res = "Yes"
print(res)

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

Y = y - 2*x
yy = Y % 2
X = 4*x - y
xx = X % 2

if yy == 0 and xx == 0 and Y >= 0 and X >= 0:
  print("Yes")
else:
  print("No")

Solution (Python):

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

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

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

    for i in range(x + 1):
        kame = (x - i) * 4
        turu = i * 2

        if (kame + turu) == y:
            print("Yes")
            exit(0)

    print("No")


if __name__ == "__main__":
    main()

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

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

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

print("No")

Solution (Python):




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

for i in range(x+1):
    kame = x-i
    turu = i

    if kame*2 + turu*4 ==y:
        print("Yes")
        exit()

print("No")

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

def func(x,y):
    if y % 2 == 1:
        return False
    if 4*x < y:
        return False
    if y < 2*x:
        return False
    else:
        return True
    
if func(x,y):
    print("Yes")
else:
    print("No")

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


bm = Y%2
b = Y/2-X
a = X - b
if bm == 0 and a >= 0 and b >= 0:
    print('Yes')
    exit(0)

print('No')

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

x1 = x
while x1 >= 0:
    if x1*4 + (x-x1)*2 == y:
        ans = "Yes"
        break
    x1 -= 1
print(ans)

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




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

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

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

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

Solution (Python):
a,b = map(int, input().split())
if b%2==1:
  print("No")
elif 2*a <= b <= 4*a:
  print("Yes")
else:
  print("No")

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

a = []

for i in range(x+1):
    s = i*2 + (x-i)*4
    t = i*4 + (x-i)*2
    a.append(s)
    a.append(t)
    
if y in a:
    print('Yes')
else:
    print('No')

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

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

print('No')

Solution (Python):



l = input().rstrip().split(" ")
X = int(l[0])
Y = int(l[1])

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

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

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

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

num = [[i,X - i] for i in range(0,X + 1)]

ans = "No"

for i in num:
  if i[0] * 2 + i[1] * 4 == Y:
    ans = "Yes"
    break

print(ans)

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

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

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

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

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

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

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

if Y%2 == 1:
    print("No")

elif 2*X <= Y and Y <= 4*X:
    print("Yes")

else:
    print("No")

Solution (Python):


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

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

combi = [(i, x-i) for i in range(x+1)]

for tsuru, kame in combi:
    if tsuru*2 + kame*4 == y:
        print("Yes")
        break
else:
    print("No")

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

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

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

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

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

check = 0

for num in range(0, x+1):
    if 2*num + 4*(x-num) == y:
        check = 1
        break

if check == 1:
    print("Yes")

else:
    print("No")

Solution (Python):



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

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

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

eva=False

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

Solution (Python):




def main():

    
    first_input = list(map(lambda x:int(x), input().split(" ")))
    

    
    
    

    
    

    X = first_input[0]
    Y = first_input[1]

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


if __name__ == '__main__':
    main()

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

for t in range(0, 101):
    c = x - t
    if t*4+c*2 == y and c >= 0:
        print('Yes')
        exit()

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

tf = False
if X == 1:
    if Y == 2 or Y == 4:
        tf = True
else:
    for i in range(0, X + 1):
        if i * 2 + (X - i) * 4 == Y:
            tf = True

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

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

ans = "No"

for bird in range(X + 1):
    turtle = X - bird
    if bird * 2 + turtle * 4 == Y:
        ans = "Yes"

print(ans)

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

Solution (Python):
a = list(input().split(" "))
animal = int(a[0])
foot = int(a[1])
 
saisyo = 2 * animal
saidai = 4 * animal
 
if (foot % 2 == 0) and (saisyo <= foot <= saidai):
	print("Yes")
else:
    print("No")

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

Solution (Python):
import math
import string
import collections
from collections import Counter
from collections import deque
from decimal import Decimal
import sys
import fractions
from operator import itemgetter


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


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor



dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
x, y = map(int, input().split())
if x == 1 and(y == 2 or y == 4):
    print('Yes')
    exit()
for i in range(x+1):
    tmp = 2*(x-i)+i*4
    if tmp == y:
        print('Yes')
        exit()
print('No')

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

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

Solution (Python):
import sys
import  math
import fractions
from collections import defaultdict
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

X,Y=nm()
b_2=Y-2*X
a_2=4*X-Y

if(0<=b_2 and b_2%2==0 and 0<=a_2 and a_2%2==0):
    print('Yes')
    sys.exit(0)

print('No')

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

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

if Y%2 == 1:
  print('No')
  exit()
  
if Y//2 < X:
  print('No')
  exit()
  
if 2*X < Y//2:
  print('No')
  exit()
  
print('Yes')

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

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

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

print("No")

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

Solution (Python):
a = input()
[x, y] = [int(comp) for comp in a.split()]
flag = 0
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())
if (Y - 2 * X) % 2 == 0 and (4 * X - Y) % 2 == 0 and Y - 2 * X >= 0 and 4 * X - Y >= 0:
  print('Yes')
else:
  print('No')

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


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

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

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

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

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

y = int(y/2)

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

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

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

Solution (Python):
X, Y = map(int, input().split())
if Y % 2 != 0:
    print('No')
    exit()
for a in range(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 y % 2 != 0:
    print("No")
else:
    a = 2 * x - 1/2 * y
    b = y * 1/2  - x

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

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

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

for i in range(x + 1):
    if 2 * i  +  4 * (x - i) == y:
        cnt += 1
    else:
        pass

if cnt == 0:
    print('No')
else:
    print('Yes')

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):
x,y=map(int,input().split())
result='No'
for i in range(0,101):
    for d in range(0,101):
        if i+d==x:
            if i*2+d*4==y or i*4+d*2==y:
                result='Yes'
                break
print(result)

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

i = 0
while i <= X:
    j = X - i
    K = (2 * i) + (4 * j)
    if K == Y:
        print('Yes')
        exit()
    i += 1

print('No')

Solution (Python):
x, y = map(int, input().split())
correct = False
if(y % 2 == 0):
  for legs in range(2*x, 4*x + 1, 2):
    if(legs == y):
      correct = True
      break
print("Yes" if correct else "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):
X, Y = map(int, input().split())

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

if a < 0 or b < 0:
    res = "No"

if a.is_integer() and b.is_integer():
    pass
else:
    res = "No"

print(res)

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

Solution (Python):


import sys
input= lambda: sys.stdin.readline().rstrip()
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))

def resolve():
    X,Y=pin()
    cond=0
    for i in range(X+1):
        if 4*i+2*(X-i)==Y:
            cond=1
    print(["No","Yes"][cond])

resolve()

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

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

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

Solution (Python):

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

for i in range(0,101):
    for j in range(0,101):
        if i*2 + j*4 == y:
            if i+j == x:
                print("Yes")
                exit()

print("No")

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())
a=2*X-0.5*Y
b=-X+0.5*Y
if a>=0 and b>=0:
  if Y%2==0:
    print("Yes")
  if Y%2==1:
    print("No")
else:
  print("No")

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

t = a[1]/2 - a[0]
c = 2 * a[0] - a[1] / 2

if (t % 1 == 0 and c % 1 == 0 and t >= 0 and c >= 0):
  print('Yes')
else:
  print('No')

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

a = 0
b = x - a
ans = False

while a <= x:
    if (4 * a + 2 *b) == y:
        ans = True
        break
    a += 1
    b -= 1

print('Yes') if ans else print('No')

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

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

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

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

ans = "No"
for crane in range(x + 1):
    turtle = x - crane
    foot = 2 * crane + 4 * turtle
    if foot == y:
        ans = "Yes"

print(ans)

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

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

Solution (Python):
x,y=map(int,input().split())
if y<=x:
    print("No")
else:
    a = []
    for t in range(x+1):
        a.append(2*(x+t))
    if y not in a:
        print("No")
    else:
        print("Yes")

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

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

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

if Y > (4*X):
    print('No')

elif Y < (2*X):
    print('No')

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

else:
    print('Yes')

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

Solution (Python):
X,Y=map(int,input().split())
ans="No"
for crane in range(100):
  for turtle in range(100):
    if crane+turtle == X and 2*crane+4*turtle == Y:
      ans="Yes"
      break
print(ans)

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

found = False




for i in range(X+1) :
    kame_legs = 4 * i
    tsuru_legs = 2 * (X-i)
    if (Y == kame_legs + tsuru_legs) :
        
        found = True
        break

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

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

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

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

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

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

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

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


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

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


if X * 2 == Y or X * 4 == Y:
  print('Yes')
  exit()
  

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

print('No')

Solution (Python):
x, y = map(int, input().split())
a = x
b = 0
if y % 2 != 0:
    print("No")
    quit()
else:
    while a >= 0:
        c = a * 2 + b * 4
        if c == y:
            print("Yes")
            quit()
        a -= 1
        b += 1
print("No")

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

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

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

if b%2==1:
    print("No")

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