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):
hiki,hon = map(int,input().split())
turu = 0
kame = 0

for i in range(50):
    if hiki > 0 and hon >= 4:
        hon = hon - 4
        kame = kame + 1
        hiki = hiki - 1
    elif hon == 2 and hiki == 1:
        hiki = 0
        hon = 0
    else:
        break

hantei = hon % 2

for i in range(50):
    if hiki == 0 or kame == 0 or hantei == 1:
        break
    elif hiki > 0 and kame > 0 and hantei == 0:
        hiki = hiki - 1
        kame = kame - 1

if hiki == 0 and hon == 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):

def main():
    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)


if __name__ == "__main__":
    main()

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

A = 0
for i in range(X+1):
    C = i
    T = X - C
    CL = C * 2
    TL = T * 4
    L = CL + TL
    if L == Y:
        A += 1

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

Solution (Python):
X, Y = map(int, input().split())
kame=Y/2-X
turu=-Y/2+2*X

if kame<0 or turu<0:
    ans='No'
elif kame.is_integer() and turu.is_integer():
    ans='Yes'
else:
    ans='No'
print(ans)

Solution (Python):
import sys
from functools import reduce


def input():
    return sys.stdin.readline()[:-1]

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

bool1 = Y - 2*X >= 0
bool2 = 4*X - Y >= 0

if bool1 and bool2 and Y % 2 == 0:
    print("Yes")
else:
    print("No")

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

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

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

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

Solution (Python):
animals, legs = [int(x) for x in input().split()]
flg = False

for i in range(animals + 1):
    j = animals - i
    if 2 * i + 4 * j == legs:
        flg = True

print("Yes" if flg else "No")

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

a = y - 2 * x
b = 4 * x - y

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

Solution (Python):
s = input().split()
num = int(s[0])
total = int(s[1])
max_num = total//2 
tmp = max_num//2 
min_num = max_num - tmp
if total%2 ==1:
    print("No")
elif num <= max_num and min_num <= num:
    print("Yes")
else:
    print("No")

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

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

print('No')

Solution (Python):
x, y = map(int, input().split())
if y%2 == 1:
  print("No")
  exit()
b = y//2 -x
a = x - b
if (a >= 0) & (b >= 0):
  print("Yes")
else:
  print("No")

Solution (Python):

n,m = map(int, input().split())

if n*4>=m and n*2<=m and (n*4-m)%2==0:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
x,y=map(int,input().split(" "))
if y>=x*2 and y<=x*4 and y%2==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):
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())
 
if (1 <= X <= 100) and (1 <= Y <= 100):
  kame = ( Y - (2 * X)) / 2
  turu = (Y - (4 * X)) / -2
  
  if kame.is_integer() and turu.is_integer() and kame >= 0 and turu >= 0:
  	print("Yes")
  else:
    print("No")

Solution (Python):
x,y = map(int,input().split())
max_kame = int(y/4)
for kame in range(max_kame,-1,-1):
  turu = x - kame
  sum_leg = 2 * turu + 4 * kame
  if sum_leg == y:
    print('Yes')
    break
  if kame == 0:
    print('No')
    break

Solution (Python):
a,b=map(int,input().split())
ans=1
for i in range(0,b):
  for j in range(0,b):
   if i+j==a and i*2+4*j==b:
    ans+=1
    break
   else:
     pass

if ans>1:
  print("Yes")
else:
  print("No")

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

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

print("No")

Solution (Python):
def run(x, y):
    '''
    '''
    for i in range(x + 1): 
        if y == 2 * i + 4 * (x - i):
            print('Yes')
            return
    print('No')



if __name__ == '__main__':
    x, y = list(map(int, input().split()))
    run(x, y)

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

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

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

Solution (Python):
def run(x, y):
    '''
    '''
    for i in range(x + 1): 
        if y == 2 * i + 4 * (x - i):
            print('Yes')
            return
    print('No')



if __name__ == '__main__':
    x, y = list(map(int, input().split()))
    run(x, y)

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())
legs, i = 4*x, 0
while y<legs and i<x: legs-=2; i+=1
if legs==y: print('Yes')
else: print('No')

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

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

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

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

Solution (Python):
"""
    Satwik_Tiwari ;) .
    16 june , 2020  - Tuesday
"""



from __future__ import division, print_function

from fractions import Fraction
import sys
import os
from io import BytesIO, IOBase


import bisect
from heapq import *
from math import *
from collections import deque
from collections import Counter as counter  
from itertools import combinations as comb 
from itertools import permutations as permutate
from bisect import bisect_left as bl


from bisect import bisect_right as br
from bisect import bisect





BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

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

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


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        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")


def print(*args, **kwargs):
    """Prints the values to a stream, or to sys.stdout by default."""
    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()


if sys.version_info[0] < 3:
    sys.stdin, sys.stdout = FastIO(sys.stdin), FastIO(sys.stdout)
else:
    sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)






mod = 1000000007
def inp(): return sys.stdin.readline().rstrip("\r\n") 
def out(var): sys.stdout.write(str(var))  
def lis(): return list(map(int, inp().split()))
def stringlis(): return list(map(str, inp().split()))
def sep(): return map(int, inp().split())
def strsep(): return map(str, inp().split())
def graph(vertex): return [[] for i in range(0,vertex+1)]
def zerolist(n): return [0]*n
def nextline(): out("\n")  
def testcase(t):
    for p in range(t):
        solve()
def printlist(a) :
    for p in range(0,len(a)):
        out(str(a[p]) + ' ')
def lcm(a,b): return (a*b)//gcd(a,b)
def power(a,b):
    ans = 1
    while(b>0):
        if(b%2==1):
            ans*=a
        a*=a
        b//=2
    return ans
def ncr(n,r): return factorial(n)//(factorial(r)*factorial(max(n-r,1)))
def isPrime(n) : 
    if (n <= 1) : return False
    if (n <= 3) : return True
    if (n % 2 == 0 or n % 3 == 0) : return False
    i = 5
    while(i * i <= n) :
        if (n % i == 0 or n % (i + 2) == 0) :
            return False
        i = i + 6
    return True




def solve():
    x,y = sep()
    if((4*x-y)%2==0 and (4*x-y)>=0 and 2*x <= y):
        print('Yes')
    else:
        print('No')



testcase(1)

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

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

max_leg = 4 * X
min_leg = 2 * X

if min_leg <= Y <= max_leg and Y % 2 == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
[X, Y] = list(map(int, input().split()))
tsuru = 4 * X - Y
kame = Y -2 * X
if (tsuru >= 0) and (tsuru % 2 == 0):
  if (kame >= 0) and (kame % 2 == 0):
    ans = 'Yes'
  else:
    ans = 'No'
else:
  ans = 'No'

print(ans)

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

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

Solution (Python):
def turtle(x, y):
    tmp = y - 2 * x
    if tmp >= 0 and tmp % 2 == 0:
        return True
    else:
        return False


def crane(x, y):
    tmp = 4 * x - y
    if tmp >= 0 and tmp % 2 == 0:
        return True
    else:
        return False


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

if turtle(x, y) and crane(x, y):
    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 = [int(i) for i in input().split()]

b = y/2 - x
a = x - b

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

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

Solution (Python):
S,leg = [int(i) for i in input().split()]



x = (4*S-leg)/2
if x-int(x) == 0 and x>=0 and x <= S:
  print('Yes')
else:
  print('No')

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

def solve(X, Y):
    for k in range(X+1):
        t = X - k
        if k * 2 + t * 4 == Y:
            return "Yes"
    return "No"

print(solve(X, Y))

Solution (Python):
X,Y=map(int,input().split());print("YNeos"[((y:=Y/2)-X)*(2*X-y)!=abs(int((y-X)*(2*X-y)))::2])

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

a = x[0]*2 - x[1]/2
b = -x[0] + x[1]/2

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

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

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

Solution (Python):

"""
Created on Sat Jun 20 15:37:51 2020

@author: naoki
"""
import sys

X,Y = map(int, input().split()) 
i = 0 
if Y % 2 == 1 or Y > 4*X or Y < 2 * X:
    print("No") 
    sys.exit()
else:
    while 4*i <= Y and i<= X:
        if 4*i + 2*(X-i) == Y:
            print("Yes")
            sys.exit()
        else:
            i+=1
print("No")

Solution (Python):




A,B = map(int,input().split())

Y = (B - 2*A) / 2

if not( Y.is_integer() ) or ( Y < 0) :
    print('No')
    exit(0)
else:
    X = A - Y
    if X < 0:
        print('No')
        exit(0)

print('Yes')

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

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

upto = 4 * X

if upto == Y:
    print("Yes")
    exit()
while X:
    upto -= 2
    if Y == upto:
        print("Yes")
        exit()
    X -= 1
print("No")

Solution (Python):
i = list(map(int, input().split()))
x = i[0]
y = i[1]

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

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

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

Solution (Python):
n, m = map(int, input().split())

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

Solution (Python):
def ip():
    return [ int(_) for _ in input().split()]

def main():
    ip1=ip()
    two=ip1[1]-ip1[0]*2
    if (two&1 or two<0):
        print("No")
        return
    four=ip1[0]*4-ip1[1]
    if (four&1 or four<0):
        print("No")
        return
    print("Yes")
    





if __name__=='__main__':
    main()

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

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

Solution (Python):
import sys
a, b = map(int, sys.stdin.buffer.read().split())
if not b % 2 and (a * 2 <= b <= a * 4):
  print('Yes')
else:
  print('No')

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

Solution (Python):
import argparse
import collections
import logging.config
import sys
import csv
import numpy as np

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

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

if __name__ == '__main__':
    main()

Solution (Python):
def solve():
  x,y=map(int,input().split())
  k=y-2*x
  if (k&1 or k<0): 
    print("No")
    return
  j=4*x-y
  if(j&1 or j<0):
    print("No")
    return
  print("Yes")
  
solve()

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

ans = 'No'
for i in range(X + 1):
    bird = i
    turt = X - i

    if 2 * bird + 4 * turt == 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):
def run():
  x, y = map(int, input().split())

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

if __name__ == "__main__":
  run()

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

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

flg = False

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

Solution (Python):
x, y = map(int, input().split())
print(['No', 'Yes'][y in [2*x+2*t for t in range(x+1)]])

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

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

Solution (Python):

import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

X,Y = map(int,readline().rstrip().split())
for c in range(X+1):
    t = X-c
    sum = 2*c+4*t
    if sum == Y:
        print("Yes")
        exit()
print("No")

Solution (Python):
import sys

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

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

print("No")

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

Solution (Python):
n,m = map(int,input().split())

flag='No'
for i in range(n+1):
    if (i*4)+((n-i)*2)==m:
        flag='Yes'
        break
print(flag)

Solution (Python):
n,l = map(int,input().split())

if l%2 != 0:
    print('No')
elif l < 2*n:
    print('No')
else:
    if l/n <= 4:
        print('Yes')
    else:
        print('No')

Solution (Python):
x,y = map(int, input().split())
list = []
ans = 0
for i in range(x) :
    list.append(4)

if sum(list) == y:
    print('Yes')
    ans = 1

else :
    for i in range(x) :
        list.remove(4)
        list.append(2)
        if sum(list) == y:
            print('Yes')
            ans = 1
            break

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

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

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

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

Solution (Python):
x = input().split()
ju = 0
for i in range(2):
  x[i] = int(x[i])
for i in range(x[0]+1):
  if 2*i+4*(x[0]-i) == x[1]:
    ju += 1
if ju == 1:
  print('Yes')
else:
  print('No')

Solution (Python):
x,y=map(int,input().split())
xx=y-2*x
flag=True
if(xx%2==0):
    xx//=2
    if(xx>=0 and xx<=x):
        ''
    else:
        flag=False
else:
    flag=False
if(flag):
    print('Yes')
else:
    print('No')

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

if Y%2 == 0 and 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):
    r = i*2 + (x-i)*4
    if r == y:
        print("Yes") 
        exit()
print("No")

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

import numpy as np
def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()
X, Y = map(int, input().split())    
mat = np.array([[2,-0.5],[-1,0.5]])
matb = np.array([[X], [Y]])
Ans = np.dot(mat, matb)
if (is_integer(Ans[0]) is True) and (is_integer(Ans[1]) is True):
    if (Ans[0] >= 0) and (Ans[1] >= 0):
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

Solution (Python):
def solve(X,Y):
  if Y % 2 == 1:
    return False
  if X * 4 < Y:
    return False
  c_legs, t_legs= 2, 4
  for c in range(X + 1):
    legs = c * c_legs + (X - c) * t_legs
    if legs == Y:
      return True
  return False

X, Y = map(int, input().split())
ans = "Yes" if solve(X,Y) else "No"
print(ans)

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

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

for x in range(X+1):
    A = 4*x + (X-x)*2
    if A==Y:
        flg = 1
        break

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

Solution (Python):

import numpy as np
from collections import deque
from collections import defaultdict
import heapq
import collections
import itertools
import bisect


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


def z():
    return int(input())


def S():
    return input()


def C(line):
    return [input() for _ in range(line)]


def get_ashi(x, y):
    return 2*x + 4*y


x, y = zz()
turu = x
kame = 0
while (get_ashi(turu, kame) != y):
    if (turu == 0):
        print('No')
        exit()
    turu -= 1
    kame += 1
print('Yes')

Solution (Python):
values = input().split()

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

max_possible_legs = num_animals*4
min_possible_legs = num_animals*2

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

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

else:
    print("No")

Solution (Python):
import sys
sys.setrecursionlimit(10 ** 6)  
to_index = lambda x: int(x) - 1  
print_list_in_2D = lambda x: print(*x, sep="\n")  


def input_int():
    return int(input())

def map_int_input():
    return map(int, input())

MII = map_int_input

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

def MII_to_index():
    return map(to_index, input())

def MII_split_to_index():
    return map(to_index, input().split())


def list_int_inputs():
    return list(map(int, input()))

LII = list_int_inputs

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


def LII_2D(rows_number):
    return [LII() for _ in range(rows_number)]

def LII_split_2D(rows_number):
    return [LII_split() for _ in range(rows_number)]

X, Y = MII_split()

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

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

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

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

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

if x[1]%2==0:
    b = 2*x[0] - x[1]/2
    if 0 <= b <= x[0]:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
X, Y = map(int, input().split())
foot_num = (X*2, X*4)

if min(foot_num) <= Y and max(foot_num) >= Y:
    print('Yes' if Y % 2 == 0 else 'No')
    
else:
    print('No')

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

Solution (Python):
import sys
sys.setrecursionlimit(10 **5)




readline = sys.stdin.readline

def proc():
    k,n = map(int,readline().rstrip().split())
    
    p,q = -1,-1
    ans = []
    
    for i in range(0, 101):
        for j in range(0,101):
            
            if 2*i + 4*j == n:
                p,q = i,j
                ans.append( (p,q))

    for pair in ans:
        p,q = pair[0],pair[1]
        if p+q == k:
            return "Yes"
    
    return "No"




print(proc())

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

possible = False
for t in range(x + 1):
    k = x - t
    if t * 2 + k * 4 == y:
        possible = True
        break

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

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

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

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

Solution (Python):
def main():
    x, y = map(int, input().split())
    a = {2*i + 4*(x-i) for i in range(x+1)}
    print('Yes') if y in a else print('No')
    
if __name__ == "__main__":
    main()

Solution (Python):
def main():
    x, y = map(int, input().split())
    a = [ 2*i + 4*(x-i) for i in range(x+1)]
    print('Yes') if y in a else print('No')
    
if __name__ == "__main__":
    main()

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

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

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

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

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

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

Solution (Python):
input=input()
tmp=input.split()
X=int(tmp[0])
Y=int(tmp[1])
if (Y%2==1):
    print('No')
else:
    Y=Y/2
    x=2*X-Y
    y=Y-X
    if(x<0 or y<0):
        print('No')
    else:
        print('Yes')

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

Solution (Python):
X,Y=input().split()
X=int(X)
Y=int(Y)
a=(Y-2*X)*5 
b=(4*X-Y)*5 
a1=a%10
b1=b%10
if a>=0 and b>=0:
  if a1==0 and b1==0:
    print("Yes")
  else:
    print("No")
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 == 1:
  print("No")
else:
  print("Yes")

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

Solution (Python):

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

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

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

Solution (Python):









def main():
    X, Y = map(int, input().split())
    C = 2 * X - Y // 2
    T = -X + Y // 2
    print("Yes" if 0 <= C and 0 <= T and C + T ==
          X and 2 * C + 4 * T == Y else "No")
    return


main()

Solution (Python):
def main():
    n, legs = [int(x) for x in input().split(" ")]

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

    max = legs / 2
    min = int(legs / 4) + (legs % 4) / 2

    print("Yes" if n >= min and n <= max else "No")

main()

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

Solution (Python):
import sys
import time
st = time.perf_counter()


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


ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)

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

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

print(ans)

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

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

b2 = y-2*x
a = x - b2//2
if b2%2 or b2 < 0 or a < 0:
  print('No')
else:print('Yes')

Solution (Python):


import sys
import math
from collections import Counter
import itertools
import fractions
from decimal import *




def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())

def LI(): return list(map(int, sys.stdin.readline().split()))

def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SR(): return sys.stdin.readline().rstrip()

ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ascii_uppercase2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'


p2D = lambda x: print(*x, sep="\n")
p2E = lambda x: print(''.join(x))
p2S = lambda x: print(*x, sep=" ")


X,Y=MI()

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

if Y%2==0:
    print('Yes')
else:
    print('No')

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

Solution (Python):



import os
import sys







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

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


if __name__ == '__main__':
    main()