peterverebics/CodeNet_Python_118 huggingface dataset:
a = list(map(int,input().split()))
ans = False
for i in range(a[0]):
  if ((a[1] - i * 4 ) //2 +i == a[0]) or (i+1 == a[0]):
    ans = True
    break
if ans:
  print('Yes')
else:
  print('No')
x,y = map(int, input().split())

if (4*x - y)  / 2 >= 0:
    print("Yes")
else:
    print("No")
X,Y=map(int, input().split())

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

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

if (y - (x * 2)) % 2 == 0 and ((y - (x * 2)) / 2) <= x:
    print("Yes")
else:
    print("No")
import sys
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

ans = "No"
flag = False
x , y = map(int, read().split())

for i in range(x+1):
  for j in range(x+1):
    tmp = i*4 + j*2
    print(tmp,i,j)
    if tmp is y:
      flag = True
      ans = "Yes"
      break
    elif tmp > y:
      break
  if flag is True:
    break


print(ans)
def main():
    x, y = map(int, input().split())
    y2 = y
    ans = 'No'

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

    print(f'{ans}')


if __name__ == '__main__':
    main()
X, Y = map(int, input().split())

ans = "No"
for i in range(201):
    if Y == i * 2 + (X - i) * 4:
        ans = "Yes"

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

if Y != 0 and Y % 2 == 0 and Y <= 4 * X:
    print("Yes")
else:
    print("No")
a,b=map(int,input().split())
c=0
for i in range (1,a+1):
  for j in range (1,a+1-i):
    if (i+j)==a and (i*2 + j *4) == b:
      c+=1
if c== 0:
  print('No')
else:
  print('Yes')
a,b = map(int,input().split())
if a*4 >=b:
    if b%4== 2:
        print('Yes')
    if b%4== 0:
        print('Yes')
    if b%4== 1:
        print('No')
    if b%4 ==3:
        print('No')
else:
    print('No')
x, y = map(int,input().split())

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

if pnt == 0:
    print("No")
if pnt == 1:
    print("Yes")
from sys import stdin
x, y = map(int, stdin.readline().rstrip().split())

res = 'No'
if y%2 == 1: #偶数だけ
    print(res)
elif y/4 > x: #亀だけ
    print(res)
elif y/2 < x: #つるだけ
    print(res)
else:
    for i in range(0, x):
        if i*4 + (x-i)*2 == y:
            res = 'Yes'

    print(res)
X, Y = map(int, input().split(' '))
if Y % 2 == 0 and Y <= 4 * X:
    print('Yes')
else:
    print('No')
a,b=map(int,input().split())
if 2*a<=b and b<=4*a and b%2==0:
  print('yes')
else:print('no')
x, y = map(int, input().split())

a = (4 * x - y) // 2
b = (y - 2 * x) // 2
if 0 <= a and 0 <= b and (a + b) <= 100 and (2 * a + 4 * b) <= 100:
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())

b = (y - (2*x))/2
a = abs(x - b)
if int(a) + int(b) == x:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())
if Y % 2 != 0:
    print("No")
else:
    if X * 4 >= Y:
        if X * 2 < Y:
            print("No")
        else:
            print("yes")
    else:
        print("No")
X,Y=map(int,input().split())
a=0
for i in range(1,X+1):
    if i*2+(X-i)*4==Y:
        a=1
if a==1:    
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())

legs = x * 4
enough = y - legs
if enough // 2 < x:
    print('Yes')
else:
    print('No')
x,y = map(int,input().split())
for i in range(1,x+1):
  f = 2*i + 4*(x-i)
  if  f == y:
    print('Yes')
    break
else:
  print('No')
X, Y = map(int, input().split())
Z = X * 4 - Y
if Z < 0:
    print("No")
elif Z % 2 == 0:
    print("Yes")
else:
    print("No")
N, M = map(int,input().split())
crain = (4 * N - M) / 2
if crain.is_integer() and crain > 0:
    crain = int(crain)
    print("Yes")
else:
    print("No")
N, foot = map(int,input().split())

q, mod = divmod(foot, 4)

if foot > N*4:
  print("No")
elif foot % 2 ==1:
  print("No")
elif q > N:
  print("No")
else:
  print("Yes")
import sys
input = sys.stdin.readline

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

for i in range(0,101):
    n = i
    k = X - i
    if Y == n * 2 + k * 4:
        print('Yes')
        exit()
print('No')
xin = input().split()
x = list(map(int, xin))

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

if a>=0 and b>= 0:
	if(isinstance(a, int) and isinstance(b, int)):
		print("yes")
	else:
		print("no")
else:
	print("no")
n,m = map(int,input().split())
c=0
for i in range(1,n+1):
  if(i*2 + (n-i)*4 == m): c=1
print("YES" if c==1 else "NO")
a,b= map(int, input().split())
if 4*a>=b:
    print('Yes')
else :
    print('No')
x, y = map(int, input().split())

all_crane_num = x * 2
diff = y - all_crane_num
turtle_num = diff / 2
crane_num = x - turtle_num

if turtle_num >= 0 and crane_num >= 0 and turtle_num*4 + crane_num*2 == y:
    print('Yes')
else:
    print('No')
X,Y = map(int,input().split())

if X-(Y//4)>0 and Y%2==0:
  print("Yes")
else:
  print("No")
x, y = map(int,input().split())
res = "No"
for i in range(x):
    if 4 * i + 2*(x-i) == y:
        res = "Yes"
        break
print(res)
x,y = map(int,input().split())

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

pos = (4*x - y) // 2 >= 0

if pos:
  print('Yes')
else:
  print('No')
a,b = map(int,input().split())
low = a*2
high = a*3
if b<low or b>high:
  print("No")
else:
  print("Yes")
X, Y = map(int, input().split())

if 2 * X == Y:
    print('Yes')
else:
    print('No')
X,Y = map(int,input().split())
flag = False

if X == 1:
    if (Y == 2) or (Y == 4):
        flag = True
        
for i in range(X):
    for j in range(X):
        if i + j != X:
            continue
        print(i,j)
        print(2*i+4*j)
        if 2*i+4*j == Y:
            flag = True
            break


if flag == True:
    print("Yes")
else:
    print("No")
X,Y= map(int, input().split())
turu = 2
kame = 4
exsist = False
for i in range(0,X):
    for j in reversed(range(0,X)):
        if Y == (turu* (j - i) + kame*j):
            exsist = True
            break

if exsist:
    print("Yes")
else:
    print("No")
from math import floor
x,y = map(int,input().split())
z = 2*x + y/2
if (z - floor(z) == 0):
  print("Yes")
else:
  print("No")
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")
X,Y=map(int,input().split())
def s(X,Y):
    for i in range(0,X+1):
        for j in range(i,X+2):
            if (2*i+4*j)==Y or (2*j+4*i)==Y:
                return "Yes"
    return "No"
string_ans = s(X,Y);
print(string_ans)
X, Y = map(int, input().split())
t = Y - 2*X
u = 4*X - Y

if (t >= 2) & (t % 2 == 0) & (u >= 2) & (u % 2 == 0):
    print("Yes")
else:
    print("No")
N, M = map(int,input().split())

for i in range(1, N+1):
    # 足の数
    f = 2 * i + 4 * (N - i)
    if f == M:
        print("Yes")
        break
else:
    print("No")
x,y = map(int, input().split())
cnt2 = 0
cnt4 = 0
for i in range(x):
    cnt4 = 4*(i+1)
    cnt2 = 2*(x-i-1)
    if cnt2 + cnt4 == y:
        print("Yes")
        exit()

print("No")
N, M = map(int,input().split())
for i in range(1, N+1):
    # 足の数
    f = 2 * i + 4 * (N - i)
    if f == M:
        print('Yes')
        break
else:
    print('No')
x, y = map(int, input().split())
now = x
for i in range(3+1):
    sums = i * 2 + (x-i) * 4
    if sums == y:
        print("Yes")
        break
else:
    print("No")
X, Y = map(int, input().split())
if (Y == 2*X) | (Y == 2*X+2) | (Y == 2*X+4) | (Y == 2*X+6) | (Y == 4*X):
    print("Yes")
else:
    print("No")
x,y = map(int, input().split())

for i in range(1,x+1):
  a = i*2
  b = (x-i)*4
  if a+b == y:
    print("Yes")
    exit()
print("No")
N,M = map(int,input().split())
if M %2 == 0:
    print("Yes")
else:
    print("No")
X,Y = list(map(int,input().split()))
if Y % 2 == 0 and  4*X >= Y:
    print('Yes')
else:
    print('No')
x ,y = map(int, input().split())
 
sun = 0
for i in range(0, x+1):
    sum = i*2
    if sum == y:
        print('Yes')
        exit()
    for j in range(0, x+1):
        if i+j >x:
            break
        if not j == 0:
            sum += 4
        if sum == y:
            print('Yes')
            exit()
print('No')
# coding:utf-8


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

    m = (Y-2*X)

    if (m >= 0 and m % 2 == 0 and (2*X - m) >= 0 and (2*X - m) % 2 == 0):
        print("Yes")
    else:
        print("NO")

    return


if __name__ == "__main__":
    main()
X,Y=map(int,input().split())
for i in range(1,X+1):
    for j in range(1,X+1-i):
        if 2*i+j*4==Y and i+j==X:
            print('Yes')
            exit()
print('No')
x, y = map(int, input().split())
for i in range(x+1):
  if 2*i+4*(x-i) == y:
    print('YES')
    exit()
print('NO')
x, y = list(map(int, input().split(" ")))
ans = "No"

for v in range(x+1):
    a = y - 2 * v
    z = x - v
    if z != 0:
        b = a / z
        if (b % 4) == 0:
            ans = "Yes"
            break
    else:
        if a == 0:
            ans = "Yes"
        
        
print(ans)
x , y = map(int, input().split())

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

if x == 1:
    if y == 2 or y == 4:
        print('Yes')
        exit()
    else:
        print('No')
        exit()
    
if y > 4*x:
    print('No')
    exit()
elif y//4 == x:
    print('Yes')
    exit()

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


if 1 <= x <= 100 and 1 <= y <= 100:
  for a in range(0, 100, 1):
    if ( 2 * (x-a) + 4 * a == y and  a < x ):
      print('yes')
      exit()

  print('no')
x,y = map(int, input().split())

Ans = "No"
for i in range(x):
  if(y == 2*i + 4*(x-i)):
    Ans = "Yes"
print(Ans)
X,Y=map(int,input().split())
for i in range(X):
    if 0<Y-4: Y-=4
    else: Y-=2
    if Y<=-1: print('No'); exit()
print('Yes' if Y==0 else 'No')
#!/usr/bin/env python3

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

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

print('No')
n=input()
x,y=n.split()
z=(4*int(x)-int(y))/2
if z.is_integer and 100>=z>=0:
  print('Yes')
else:
  print('No')
x, y = list(map(int, input().split()))

z = x * y
t = int(z / 4)
m = int(z % 4)

print(t)

if t >= x and m % 2 != 0:
    print("No")
else:
    print("Yes")
def readInts():
 return list(map(int, input().split()))

def main():
  c = input()
  c = c.split(' ')
  x = int(c[0])
  y = int(c[1])
  sa = y - 2 * x
  if sa % 4 == 0:
    print('Yes')
  else:
    print('No')
  
  
if __name__ == "__main__":
  main()
[x, y] = [x for x in map(int, input().split(' '))]
flg = -1
if y % 2 == 1:
  flg = 1
else:
  for i in range(0, x):
    if i * 2 + (x - i) * 4 == y:
      flg = 0
      break
if flg == 1 or flg == -1:
  print('No')
else:
  print('Yes')
from sys import stdin,stdout
LI=lambda:list(map(int,input().split()))
MAP=lambda:map(int,input().split())
IN=lambda:int(input())
S=lambda:input()
import math
from collections import Counter,defaultdict


x,y=MAP()
if y!=2*x or y!=4*x:
    print("Yes")
else:
    print("NO")
x, y = list(map(int, input().split()))

# すべて亀
legs = 4 * x

if legs == y:
    print("Yes")
    exit()

if legs < y or y % 2 == 1:
    print("No")
    exit()

# 亀を鶴に置き換えていく
for i in range(x):
    legs -= 2
    if legs == y:
        print("Yes")
        exit()
a,b = map(int,input().split())

turu = 2
kame = 4
flag =0

for x in range(a + 1):
    for y in range(a + 1):
        if kame * x + turu * y == b and x + y < a:
            flag +=1
# print(flag)

if flag > 0:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())
if X * 2 <= Y:
  print("YES")
else:
  print("NO")
animal, foot = map(int, input().split())

total_min = 2 * animal
total_max = 4 * animal

is_yes = False
if total_min <= foot <= total_max:
    for a in range(animal):
        total = (a+1) * 2 + (animal - (a+1)) * 4
        if total == foot:
            print("Yes")
            is_yes = True
            break
    if is_yes == False:
        print("No")
else:
    print("No")
def b170(x, y):

    if x == 1 and y == 2:
        return "Yes"

    if (x*4-y)%4==0:
        return "Yes"
    else:
        return "No"

def main():
    x, y = map(int, input().split())
    print(b170(x, y))

if __name__ == '__main__':
    main()
x,y = map(int,input().split())
cnt = 0
for b in range(x+1) :
    for t in range(x+1,0,-1) :
        if x == b+t and y == 2*b+4*t :
            print('Yes')
            break
        else :
            cnt += 1
            if cnt == (x+1)*3 :
                print('No')
            else :
                continue
a, b = map(int, input().split())
flag = 0
for tsuru in range(a, 0, -1):
    if 2*tsuru + 4*(a-tsuru) == b:
        flag = 1

if flag == 1:
    print("Yes")
else:
    print("No")
X,Y=map(int,input().split())
now = 4*X
end = 2*X
while(now>end):
    if now==Y:
        print("Yes")
        exit()
    now-=2
print("No")
L = [int(i) for i in input().split()]
flag=0
for i in range(L[0]):
    if L[1]-i*2-(L[0]-i)*4==0:
        print("Yes")
        flag=1
        break

if flag==0:
    print("No")
#x+y = A
#2x+4y = B

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

Y = (B - 2*A) / 2

if not(A or B) :
    print('No')
    exit(0)

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

print('Yes')
X,Y = list(map(int,input().split()))
x = 2*X-Y/2
y = Y/2 - X
if x > 0 and y > 0 and (type(x) is int) and  (type(y) is int):
  print("Yes")
else:
  print("No")
x, y = map(int, input().split())
judge='No'

for i in range(x+1):
  if(x==1 and (y==4 or y==2)):
    judge='Yes'
  if(y%4==0 and y/4==x):
    judge='Yes'
  if(y%2==0 and y/2==x):
    judge='Yes'
  for j in range(x+1-i):
    print(i, j)
    if((i*2+j*4)==y and i+j==x):
      judge='Yes'
    if((i*4+j*2)==y and i+j==x):
      judge='Yes'
      
if(y%2==1):
  judge='No'

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

#偶数であること
if Y%2 ==0:
    if float(Y)/X <= 4:
        print('Yes')
        exit()

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

for i in range(0,x+1):
  print(i, x-i)
  if i*2+(x-i)*4==y:
    a=True
    break
    
if a==True:
  print("Yes")
else:
  print("No")
x,y=map(int,input().split())  
p=(y-2*x)/2
if int(p) and 1<=p<=100 :
    print("Yes")
else :
    print("No")
X,Y = map(int,input().split())
if Y % 2 != 0:
  print("No")
elif Y // 4 > X:
  print("No")
elif Y // 2 < X:
  print("No")
else:
  print("Yes")
X, Y = input().split()
X = int(X)
Y = int(Y)

if X * 4 < Y:
    print('No')
elif Y % 2 == 1:
    print('No')
elif Y % 2 == 0 and X * 4 >= Y:
    print('Yes')
else:
    print('No')
X, Y = map(int, input().split())
if ((Y//X) + ((Y*2)//X)) == X:
    print("Yes")
elif X//Y == 0:
    print("Yes")
else:
    print("No")
x,y = map(int,input().split())
if (2*x -y >= 0) and (-x + y >= 0):
    print("YES")
else:
    print("NO")
X, Y = map(int, input().split()) 
a = "NO"
for i in range(1, X+1):
    if i*2 + (X - i)*4 == Y:
        a = "YES"
        break
    else:
        continue
print(a)
x, y = map(int, input().split())

a=b=0


if x*4<y:
    print('No')
    exit()

if (y-2*x)%2==0:
    n=(y-2*x)/2
    if x-b>=0:
        print('Yes')
X,Y=map(int,input().split())
b=0

for i in range(X):
    for j in range(X-i):
        if 4*(i+1)+2*(j+1)==Y:
            b+=1
if not b==0:
    print("Yes")
else:
    print("No")
X,Y = map(int,input().split())
e = 0
temp_X = X
while temp_X >= 0:
    i = (temp_X*2) + (e*4)
    if i == Y:
        print("Yes")
        quit()
    temp_X -= 1
    e += 1
print("No")
if Y%2 != 0:
    print("No")
    quit()
x = list(map(lambda x:int(x), input().split()))
X = x[0]
Y = x[1]

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

if kame >= 0 and X-kame >= 0 and Y - kame*4 == (X-kame)*2:
  print("Yes")
else:
  print("No")
x, y = map(int, input().split())
if y % 2 == 0 and y //2 <= x:
    print('Yes')
elif y % 4 == 2 and y// 4 <= x:
    print('Yes')
elif y % 4 == 0 and y // 4 <= x:
    print('Yes')
else:
    print('No')
x,y=map(int,input().split())
ans=0
for i in range(1,x+1):
  if i*2+4*(x-i)==y:
    ans+=1   
if ans!=0:
  print('Yes')
else:
  print('No')
N, M = map(int,input().split())
crain = (4 * N - M) / 2
if crain.is_integer() and crain > 0:
    crain = int(crain)
    print('Yes')
else:
    print('No')
import sys
def main():
  x, y = list(map(int,input().split()))
  for t in range(1,101):
    if y == (t*2+(x-t)*4):
      ans =('Yes')
      break
    else:
      ans =('No')
  print(ans)     
  
if __name__ == '__main__':
    main()
x,y=map(int,input().split())
if y<2*x and y<=4*y:
  if y%2==0:
    print("Yes")
  else:
    print("No")
else:
  print("No")
b,t = map(int,input().split())

for i in range(b):
  for y in range(b-i):
    if i*2 + y*4 ==t:
      a=1
    else:
      a=0
if a == 1:
  print("Yes")
elif a == 0:
  print("No")
x,y = map(int, raw_input().split(' '))


"""
a + b = x
2a + 4b = y

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

a = x-b
2b = y  - 2x
"""
def f(x,y):
  	
	if (y - 2*x) < 0: return False
	b = (y - 2*x)/2
	a = x - b

	b = (y - 2*x)/2
	a = x - b
	
	if a < 0: return False
	return True

	return a+b == x and 2*a + 4*b ==y
  
print 'Yes' if f(x,y) else 'No'
import sys
x,y = map(int,input().split())
for i in range(x+1):
  for j in range(x+1-i):
    if (j*2)+(i*4) == y:
      print("Yes")
      sys.exit()
print("No")
x,y = map(int, input().split())

print('yes' if y >= 2*x and y <= 4*x else 'no')
X, Y = map(int, input().split())
if X * 4 >= Y and Y % 2 == 0:
    print('Yes')
else:
    print('No')
import sys
X, Y = map(int,input().split())
list1 = []
list2 = []

for x in range(0,101):
  for y in range(0,101):
    list1.append(x+y)
    list2.append(2*x+4*y)


for i in list1:
  if list1[i] == X and list2[i] == Y:
    print('Yes')
    sys.exit()
print('No')
x, y = map(int, input().split())

turu_all = 2 * x
kame = (y - turu_all) / 2

turu = x - kame
if x == turu + kame:
    ans = "Yes"
    if kame > x:
        ans = "No"

print(ans)
x,y=map(int,input().split())
if x>1:
    x=x-1
    f=x*2+(x-1)*4
    if f==y:
        print("Yes")
    else:
        print("No")
if x==1:
    if x*2==y or x*4==y:
        print("Yes")
from sys import stdin
x, y = map(int, stdin.readline().rstrip().split())

res = 'No'
if y%2 == 1: #偶数だけ
    print(res)
else:
    for i in range(0, x):
        if i*4 + (x-i)*2 == y:
            res = 'Yes'

    print(res)
x, y = map(int, input().split()) 
if (y-2*x)%2==0 and y>=2*x : 
  print('Yes')
else:
  print('No')
import numpy as np
x,y = map(int,input(). split ())

turu = 2*x
came = 4*x

if y%2==0:
    if y >= turu and came >= y:
        print("YES")
    else:
        print("NO")
else:
    print("NO")
target = list(map(int, input().split()))

num = target[0]
total = target[1]

flg = False
for i in range(target[0]+1):
    for j in range(target[0]+1-i):
        tori = i * 2
        kame = j * 4
        if (tori + kame) == total:
            flg = True
            break
    if flg:
        print('Yes')
        break
else:
    print('No')
animal, foot = map(int, input().split())

total_min = 2 * animal
total_max = 4 * animal

is_yes = False
if total_min <= foot <= total_max:
    for a in range(animal):
        total = (a + 1) * 2 + (animal - (a + 1)) * 4
        if total == foot:
            print("Yes")
            is_yes = True
            break
        elif total < foot:
            break
    if is_yes == False:
        print("No")
else:
    print("No")
x, y = map(int,input().split())

for i in range(1, x+1):
    f = 2 * i + 4 * (x - i)
    if f == y:
        print("Yes")
        break
else:
        print("No")
import sys
sys.setrecursionlimit(10**9)

INF = 10**20
def main():
    X,Y = map(int,input().split())

    k = (Y-2*X)//2
    t = X-k

    if (k == 0 and t>0) or (t == 0 and k>0):
        print("Yes")
        exit()

    print("Yes" if 0<k and 0<t else "No")



if __name__ == "__main__":
  main()
X, Y = map(int, input().split())

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

print("No")
#!python3

import sys
iim = lambda: map(int, sys.stdin.readline().rstrip().split())

def resolve():
    it = map(int, sys.stdin.read().split())
    X, Y = next(it), next(it)

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

if __name__ == "__main__":
    resolve()
a,b = map(int, input().split())
i = 0
while i<=a:
  turu = 2*(a-i)
  kame = 4*i
  
  if b == turu:
    print('YES')
    break
    
  if b == kame:
    print('YES')
    break
  
  amari = b - turu
  if amari == 0:
    print('YES')
    break

  if kame !=0:
    if amari % kame == 0:
      print('YES')
      break
      
  i = i + 1
  
else:
  print('No')
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

x, y= na()

if (4*x-y)%2 == 0 and (4*x-y)//2 >= 0  and (4*x-y)//2 < 199:
  print("Yes")
else:
  print("No")
X, Y = list(map(int, input().split()))

crane = 2*X - Y/2
turtle = Y/2 - X

print(['No', 'Yes'][crane + turtle > 0])
X ,Y = map(int ,input().split())

if X*2 <= Y <= X*3:
  print("Yes")
else:
  print("No")
x, y = [int(i) for i in input().split()]
for i in range(x+1):
	j = x-i
	if (i*2)+(j*4) == y:
		print("Yes")
else:
	print("No")
x,y = map(int,input().split())
ju = 0
for i in range(1,x+1):
    an = 2*i+4*(x-i)
    if an ==y:
        ju=1
        break

if ju==1:
    print("Yes")
else:
    print("No")
XY = list(map(int, input().split()))
 
if 2 * XY[0] - XY[1] / 2 >= 1 and -XY[0] + XY[1] / 2 >= 1:
  print('YES')
else:
  print('NO')
x, y = map(int, input().split())
for i in range(x):
    j = x - i
    if y == 2 * i + 4 * j:
        print("Yes")
        exit()
else:
    print("No")
from sys import stdin
readline = stdin.readline
def i_input(): return int(readline().rstrip())
def i_map(): return map(int, readline().rstrip().split())
def i_list(): return list(i_map())


def main():
    X, Y = i_map()
    ans = False
    z = Y - (X * 2)
    if z % 2 == 0 and (z // 2) <= X:
        ans = True
    print("Yes" if ans else "No")

if __name__ == "__main__":
    main()
c, z = map(int, input().split())

x = (4 * c - z) / 2
yojo = (4 * c - z) % 2

if(x >= 0 and yojo == 0):
    print('Yes')
else:
    print('No')
x,y = map(float, input().split())
t = (y-2*x)/2
c = x-t
if(t>=0 and c>=0):
   print('Yes')
else:
   print('No')
import math


X,Y=map(int, input().split())
if math.isclose(-Y//2+2*X, round(-Y//2+2*X)) and math.isclose(Y//2-X, round(Y//2-X)):
    if Y//2-X>0 and -Y//2+2*X>0:
        print("Yes")


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


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

    else:
         print("No")


else:
    print("No")
x,y=map(int,input().split())

q=(4*x-y)%2
turu=(4*x-y)/2

if q==0 and turu>=0:
  print("Yes")
else:
  print("No")
a,b=map(int,input().split())
if b%2==0:
    if(2*a <= b and b <= 4*a):
        print("Yes")
else:
    print("No")
x,y = list(map(int,input().split()))
print('Yes' if y % 2 == 0 and y <= 4*x else 'No')
x,y = map(int, input().split())
z = y - x*2
if z//2 == 0:
  print("yes")
else:
  print("no")
X,Y = list(map(int,input().split()))

flag = 0

for x in range(1,X+1):
    print(x)
    if 4 * X - 2 * x == Y:
        flag = 1

if X == 1 and Y == 2:
    flag = 1
if X == 1 and Y == 4:
    flag = 1

if flag == 1:
    print('Yes')
else:
    print('No')
X,Y=map(int,input().split())

if X*4 < Y or X*2 > Y or Y % 2 != 0:
  print('no')
  exit()
R = Y / X
if R == 2 or R==4:
  print('yes')
  exit()

min=X*2
max=X*4
if min <= Y and Y <= max:
  print('yes')
  exit()
print('no')
x, y = map(int, input().split())
res = "NO"
for i in range(x + 1):
    for j in range(x + 1 - i):
        if 2 * i + 4 * j == y:
            res = "YES"
            
print(res)
X,Y = map(int, input().split())

var=Y-2*X
var2=var/21
print(var2)
if  var2.is_integer()==True:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())
for i in range(X):
  if (Y - 4*(i+1))/2 == X - (i + 1):
    print("Yes")
else:
  print("No")
X,Y = map(int,input().split())
c = 4*X - Y
if(c>=0 and c%2==0):
  print('YES')
else:
  print('NO')