peterverebics/CodeNet_Python_118 huggingface dataset:
'''
In the name of God
'''

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

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

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

print('No')
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")
X, Y = map(int, input().split())

t = (Y - 2 * X) // 2
c = (4 * X - Y) // 2

if c < 0 or t < 0:
    print('No')
else:
    if c+t == X:
        print('Yes')
    else:
        print('No')
MOD = 10**9+7

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

def ii():
    return int(input())

def main():
    X, Y = list(mi())
    if 4*X-Y >= 0 and (4*X-Y)%2 == 0 and (4*X-Y)//2<= X:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()
import math
import sys
import itertools
from math import gcd
from math import sqrt
from sys import stdin
def input() : return stdin.readline().rstrip()
def mips():
    return map(int,input().split())
def ii():
    return int(input())
sys.setrecursionlimit(10**9)

X,Y = mips()
#X = tsuru + kame
#Y = 2 * tsuru + 4 * kame
for t in range(0,100):
    kame = X-t
    if kame < 0:
        break
    if 2 * t + 4 * kame == Y:
        print("Yes")
        sys.exit(0)
print("No")
wa, num = map(int, input().split())
kame = (num / 2) - wa
turu = wa - kame

if (kame >= 0 and turu >= 0) and (wa == kame + turu) and (num == 2 * turu + 4 * kame) and (
        kame.is_integer() and turu.is_integer()):
    print('Yes')
else:
    print('No')
x,y=map(int,input().split())
r=0
for i in range(0,x+1):
    c=i
    t=x-c
    if c*2+t*4==y:
        r=r+1
if r!=0:
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())

for a in range(x + 1):
    tem = 2 * a + 4 * (x - a)
    if (tem == y):
        #  and (2 * x <= y <= 4 * x):
        print('Yes')
        exit()

print('No')
# -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1

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

for i in range(X+1):
    if i*2+(X-i)*4==Y:
        print('Yes')
        exit()
print('No')
def main():
    X, Y = map(int, input().split())
    turtle = (Y - X * 2) / 2
    if turtle.is_integer() and 0 <= turtle <= X:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
x,y=map(int,input().split())
if y%2!=0:
    print('No')
elif (y-2*x)//2 < 0 or (4*x-y)//2 < 0:
    print('No')
elif (y-2*x)//2 == 0 and (4*x-y)//2==0:
    print('No')
else:
    print('Yes')
x, y = map(int, input().split())

tori = 2
kame = 4 # 全部
legs = 4*x
while True:
    if legs == y:
        print("Yes")
        exit()
    legs -= 2
    if legs < 2*x: # 全部鳥
        print("No")
        exit()
x, y = map(int, input().split())

ans = 'No'

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

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

a = 0
b = 0
det = 2
a = (4 * x - y) / det
b = (-2 * x + y) / det


if a < 0 or b < 0 or y % 2 == 1:
    print('No')
else:
    print('Yes')
x, y = map(int, input().split())

for a in range(101):
    for b in range(101):
        if a+b==x and 2*a+4*b==y:
            print("Yes")
            exit()
else:
    print("No")
x,y = map(int,input().split())
if y % 2 == 1:
    print("No")
elif 2*x - y/2 < 0:
    print("No")
elif y /2 - x < 0:
    print("No")
else:
    print("Yes")
x,y=map(int, input().split())
if y>=2*x and 4*x>=y:
  if (y-2*x)%2==0 and (4*x-y)%2==0:
    print("Yes")
  else:
    print("No")
else:
  print("No")
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


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

A = list(map(int,stdin.readline().split()))

if A[1]-2*A[0]<0:
    print('No')
else:
    if (A[1]-2*A[0])%2==0:
        if (A[1]-2*A[0])/2>A[0]:
            print('No')
        else:
            print('Yes')
    else:
        print('No')
from sys import stdin


def main():
    _in = [_.rstrip() for _ in stdin.readlines()]
    X, Y = list(map(int, _in[0].split(' ')))  # type:list(int)
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    ans = 'No'
    for x in range(0,101):
        for y in range(0,101):
            if x+y==X and 2*x+4*y==Y:
                ans = 'Yes'
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(ans)


if __name__ == "__main__":
    main()
X, Y = map(int, input().split())
A = (4*X-Y)/2
B = (Y-2*X)/2
if  A%1 == 0 and X >= abs(A) and A>=0:
  print('Yes')
elif B%1 == 0 and X >= abs(B) and B>=0:
  print('Yes')
else:
  print('No')
import sys 
X,Y = map(int, input().split())
for i in range(X+1):
    for j in range(X+1):
        if (((2*i) + (4*j)) == Y) or (((2*j) + (4*i)) == Y):
            if (i+j == X):
                print("Yes")
                sys.exit()
print("No")
# coding: utf-8


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

    for n_turu in range(X+1):
        n_kame = X - n_turu
        if n_turu * 2 + n_kame * 4 == Y:
            return "Yes"

    return "No"


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

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

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

    if flag == 0 :
        print("No")
import sys
x,y=map(int,input().split())
for i in range(x+1):
    asi=i*2+(x-i)*4
    if asi==y:
        print("Yes")
        sys.exit()
print("No")
X, Y = map(int, input().split())
K = 0

if Y % 2 == 0:
    K = Y//2 - X
    if K >= 0:
        if X - K >= 0:
            print("Yes")
            exit()

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

f = 0

for a in range(100):
    for b in range(100):
        x = a + b
        y = 2 * a + 4 * b
        if x == X and y == Y:
            f = 1
            break

    if f == 1:
        break

print(['No', 'Yes'][f])
def resolve():
    x, y = map(int, input().split())
    if y > 4*x:
        print('No')
        return
    if y < 2*x:
        print('No')
        return

    if y % 2 == 0:
        print('Yes')
        return
    print('No')
    return

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

max_num = 4 * x
min_num = 2 * x

if y % 2 == 1:
    print('No')
elif (min_num <= y) and (max_num >= y):
    print('Yes')
else:
    print('No')
def main():
    f = False
    x, y = map(int, input().split())
    for i in range(x+1):
        a, b = i, x-i
        a *= 2
        b *= 4
        if a + b == y:
            f = True
    if f:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()
x,y=map(int,input().split())
flag=False
for i in range(x):
    c=2*i+4*(x-i)
    C=4*i+2*(x-i)
    if c==y or C==y:
        flag=True
if flag:
    print('Yes')
else:
    print('No')
x,y=map(int,input().split())
if x==1 and x*4>=y and y%2==0 and x*2<=y:
  print('Yes')
elif x*4>= y and y%2==0 and x*2<=y:
    print('Yes')
else:
  print('No')
x,y=map(int,input().split())


a=(4*x-y)/2

if (a//1==a/1 and 0<=a<=x):
    print("Yes")
else:
    print("No")
X,Y =map(int,input().split())

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

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

if x*2 <= y <= x*4 and y%2==0:
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())
ans = False
 
for i in range(101):
	for j in range(101):
		if i+j == x and 2*i+4*j == y:
			ans = True
if ans:
	print("Yes")
else:
	print("No")
def main():
    x, y = map(int, input().split())

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


if __name__ == "__main__":
    main()
x,y=list(map(int,input().split()))
import sys
for i in range(0,x+1):
  if 2*i+4*(x-i)==y:
    print("Yes")
    sys.exit()
print("No")
n=input()
x,y=n.split()
for c in range(int(x)+1):
  cnt=0
  t=int(x)-c
  asi=2*c+4*t
  if asi==int(y):
    print("Yes")
    cnt=1
    break
if cnt==0:
  print("No")
x, y = map(int, input().split())
flag = True
for animal in range(1, x + 1):
    if y == animal * 4 + (x - animal) * 2 or y == animal * 2 + (x - animal) * 4:
        print ("Yes")
        flag = False
        break
if flag:
    print("No")
import sys
x,y=list(map(int, input().split()))

for i in range(0,101):
  for j in range(0,101):
    if i+j==x and i*4+j*2==y:
      print("Yes")
      sys.exit()
      
print("No")
x, y = [int(x) for x in input().split()]

flg = False
for c in range(x+1):
    t = x-c
    flg |= y == (2 * c + 4 * t)

print("Yes" if flg else "No")
x,y = map(int,input().split())
"""
1zi houteisiki
2a+2b = 2x
2a+4b = y
2b = y-2x
2a = 4x-y
"""
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")
x,y=(map(int,input().split()))

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

print('No')
x, y = map(int, input().split())
a = (4 * x - y) / 2
b = (y - 2 * x) / 2
if ((a >= 0) & (b >= 0) & (a.is_integer() == True) & (b.is_integer() == True)):
  print('Yes')
else:
  print('No')
X,Y=map(int,input().split())
l=[]
for i in range(X+1):
    l.append(2*i+4*(X-i))
if Y in l:
    print("Yes")
else:
    print("No")
x, y =map(int, input().split())
a = "No"
if y % 2 == 0:
  if x*2 <= y and y <= x*4:
    a = "Yes"
print(a)
X,Y = map(int,input().split())
if X*4 < Y or X*2 > Y:
  print("No")
else:
  if Y == X*2:
    print("Yes")
  else:
    if (Y-X*2)%2==0:
      print('Yes')
    elif (Y-X*2)%2!=0:
      print('No')
from sys import stdin
def main():
    #入力
    readline=stdin.readline
    x,y=map(int,readline().split())

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

if __name__=="__main__":
    main()
a, b = map(int, input().split())
print("Yes" if b%2==0 and 2*a<=b<=4*a else "No")
X,Y=map(int,input().split())
if Y % 2 != 0:
  print('No')
elif (Y//2 -X >=0 and 2*X-Y//2>=0):
  print('Yes')
else:
  print('No')
x,y=map(int,input().split())
if y%2!=0:
    print("No")
    exit()

if 2*x<=y<=4*x:
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())
ans = 'No'
for a in range(x+1):
    if 4*x-y == 2*a:
        ans = 'Yes'
        break
print(ans)
X,Y=map(int,input().split())
#a,bをかめとつるの数とする、これはそんなに量多くないので行ける
for a in range(X+2):
    if a==X+1:
        print("No")
    elif (Y-4*a)%2==0 and int((Y-4*a)/2)==X-a:
        print("Yes")
        break
    else:
        continue
X,Y = map(int,input().split())
ans = 'No'
for a in range(X+1):
    for b in range(X+1):
        if a + b == X and 2*a + 4*b == Y:
            ans = 'Yes'
print(ans)
x,y=map(int,input().split())

if (x*2) <= y <= (x*4) and y%2 ==0:
    print('Yes')
else:
    print('No')
x,y = map(int,input().split())
if x==1 and ( y==2 or y==4):
  print("Yes")
else:
  if y%2==1:
    print("No")
  else:
    if y<=x*4 and (y>=(x*2)):
      print("Yes")
    else:
      print("No")
[x,y] = list(map(int, input().split()))
if y%2 == 0:
    if 2*x <= y <= 4*x:
        print('Yes')
    else:
        print('No')
else:
    print('No')
x,y = map(int,input().split())
 
ans = 0
for i in range(x+1):
    f = (2*i) + 4*(x-i)
    if  f == y:
        print("Yes")
        exit()
 
print("No")
X, Y = map(int, input().split())

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

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

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

for i in range(x + 1):
    s = i
    t = x - i
    # print(s, t)
    if 2 * s + 4 * t == y:
        print('Yes')
        exit()
print("No")
x, y = map(int, input().split())
res = 'No'
for i in range(x+1):
  k = x-i
  if(i*2 + k*4) == y:
    res = 'Yes'
print(res)
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)
X, Y = map(int, input().split())
m = 2 * X
M = 4 * X

if Y % 2 == 1:
    print("No")
elif Y > M or Y < m:
    print("No")
else:
    print("Yes")
x, y = map(int, input().split())
n = (4*x - y)/2
m = (y - 2*x)/2

if n >=0 and m >=0:

    if n == int(n) and m == int(m):
      print("Yes")
    else:
      print("No")
else:
    print("No")
x, y = map(int, input().split())

all_crane_num = x * 2
diff = y - all_crane_num

turtle_num = int(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())
for i in range(X + 1):
    if i * 2 + (X - i) * 4 == Y:
        print('Yes')
        break
else:
    print('No')
X, Y = map(int, input().split())

low = 2*X
upper = 4*X

if low <= Y and Y <= upper and Y % 2 == 0:
    print("Yes")
else:
    print("No")
x,y=map(int,input().split())

for i in range(x+1):
    j=x-i
    if 2*i+4*j==y:
        print('Yes')
        break
else:
    print('No')
# 2020/06/14
# AtCoder Beginner Contest 170 - B

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

# Calc
# i is Tsuru
ans = 'No'
for i in range(0, 101):
    # j is Kame
    for j in range(0, 101):
        if i + j == x and i * 2 + j * 4 == y:
            ans = 'Yes'
            break

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

    all_crane = x * 2
    all_turtle = x * 4

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

if __name__ == "__main__":
    main()
import math
import sys
from collections import deque
import heapq
import copy
import itertools
from itertools import permutations
def mi() : return map(int,sys.stdin.readline().split())
def ii() : return int(sys.stdin.readline().rstrip())
def i() : return sys.stdin.readline().rstrip()
a,b=mi()
if b%2==1:
  print("No")
  sys.exit()
if 2*a<=b<=4*a:
  print("Yes")
else:
  print("No")
x, y = map(int, input().split())

for i in range(x+1):
   if i*2 + (x-i)*4 == y:
      print('Yes')
      exit()
print('No')
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)
animals_num, legs_num = map(int, input().split())

answer = "No"

for i in range(animals_num + 1):
  j = animals_num - i
  if j * 4 + i * 2 == legs_num:
    answer = "Yes"
print(answer)
x, y = list(map(int, input().split(" ")))
tmp = False
for i in range(0, x+1):
    if i * 2 + (x-i) * 4 == y:
        tmp = True
        break
if tmp:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())

if X * 4 >= Y and X * 2 <= Y and Y % 2 == 0:
    print("Yes")
else:
    print("No")
X,Y=map(int,input().split())
a=(4*X-Y)/2
if X<=Y and a.is_integer() and a>=0 and a<=50:
  print("Yes")
else:
  print("No")
import bisect, collections, copy, heapq, itertools, math, numpy, string
import sys
from bisect import bisect_left, bisect_right, insort
from collections import deque
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def MS(): return map(str, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
# N = I()
# A = [LI() for _ in range(N)]

import bisect


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

for x in range(0, 101):
  for y in range(0, 101):
    if(x == 0 and y == 0):
      continue
    if(x + y == a and 2*x + 4*y == b):
      print("Yes")
      exit()
print("No")
n, m = map(int, input().split())
if m % 2 == 0 and n * 2 <= m <= n * 4:
    print("Yes")
else:
    print("No")
X,Y=list(map(int,input().split()))

ymin=2*X
ymax=4*X

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

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


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

if ok:
  print("Yes")
else:
  print("No")
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    X, Y = map(int, rl().split())
    
    for i in range(X + 1):
        if 2 * i + 4 * (X - i) == Y:
            print('Yes')
            return
    print('No')


if __name__ == '__main__':
    solve()
(x,y) = input().split(" ")
x = int(x)
y = int(y)
if y % 2 == 1 or y > x * 4 or y < x * 2:
    print("No")
else:
    print("Yes")
X, Y = map(int, input().split())
for i in range(X + 1):
    j = X - i
    if i * 2 + j * 4 == Y:
        print("Yes")
        break
else:
    print("No")
X, Y = input().split()
x = int(X)
y = int(Y)
a = (4*x - y) / 2
b = (-2*x + y) / 2
if(a >= 0 and a.is_integer() and b >= 0 and b.is_integer()):
    print("Yes")
else:
    print("No")
X ,Y = map(int,input().split())
if X > 50:
    print('No')
    exit(0)
for i in range(1, X+1):
    f = 2 * i + 4 * (X - i)
    if f == Y:
        print('Yes')
        break
else:
    ans = X * 4
    count = ans/4
    if count == X and ans==Y and Y%4 == 0:
        print('Yes')
    else:
        print('No')
X, Y = map(int, input().split())

for i in range(X+1):
    if i*2+(X-i)*4 == Y:
        print('Yes')
        exit(0)
print('No')
X, Y = map(int,input().split())
crain = (4 * X - Y) / 2
turtle = (Y- 2*X) /2
if crain.is_integer() and crain >= 0 and turtle.is_integer() and turtle >= 0 :
    crain = int(crain)
    print('Yes')
else:
    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")
import sys

def II(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))
def RN(N): return [input().strip() for i in range(N)]


def main():
    X, Y = MI()


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


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

F = False

for i in range(0,X+1):
  J = X - i
  C = 4 * i + 2 * J
  if C == Y:
    F = True
if F: 
  print("Yes")
else:
  print("No")
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')
x, y = map(int, input().split())

max = 4*x
min = 2*x

if y % 2 == 0 and min <= y <= max:
    print("Yes")
else:
    print("No")
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")
a,b = map(int,input().split())
exist_flg = False
for kame in range(a+1):
  tsuru = a - kame
  if (kame*4+tsuru*2)==b:
    exist_flg = True
    break
if exist_flg:
  print("Yes")
else:
  print("No")
x, y = map(int, input().split())
cnt = 0
for i in range(x+1):
    for j in range(x+1):
        if i + j == x and i*2+j*4 == y:
            cnt += 1
print("Yes") if cnt > 0 else print("No")
X,Y= map(int,input().split())
a = Y/2-X 
b = X*2-Y/2

if Y%2 ==0:
    if a >= 0 and b >= 0:
        print('Yes')
    else:
        print('No')
else:
    print('No')
X, Y=map(int,input().split())
T=4*X-Y
K=Y-2*X
if T>=0 and K>=0 and T%2==0 and K%2==0:
  print("Yes")
else:
  print("No")
x,y=map(int,input().split())
a=(y-2*x)//2
b=x-a
 
if y%2==0 and a>=0 and b>=0:
  print("Yes")
else:
  print("No")
x, y = [int(x) for x in input().split()]
canbe = "No"
for i in range(1, x + 1):
    a = (i * 2) + (x - i) * 4
    b = (i * 4) + (x - i) * 2
    if a == y or b == y:
        canbe = "Yes"
        break
print(canbe)
X,Y=map(int,input().split())
ans="No"
for x in range(0,101):
  for y in range(0,101):
    if (x+y)==X and (2*x+4*y)==Y:
      ans="Yes"
      break
  if ans=="Yes":
    break
print(ans)
anims, legs = map(int, input().split(' '))

for crane in range(anims + 1):
    if crane * 2 + (anims - crane) * 4 == legs:
        print("Yes")
        exit()

print("No")
from numpy.linalg import solve

x, y = map(int, input().split())
left = [[1, 1],
        [2, 4]]

right = [x, y]

a = solve(left, right)

left = [[1, 1],
        [4, 2]]

right = [x, y]
b = solve(left, right)
if (a[0] >= 0 and a[1] >= 0) or (b[0] >= 0 and b[1] >= 0):
    if (a[0].is_integer() is True and a[1].is_integer() is True) or (b[0].is_integer() is True and b[1].is_integer() is True):
        print("Yes")
    else:
        print("No")
else:
    print("No")
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:
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())

if y%2!=0 or y>4*x or y<2*x:
  print('No')
else:
  print('Yes')
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")
ii = lambda:int(input())
mi = lambda:list(map(int,input().split()))
ix = lambda x:list(input() for _ in range(x))
mix = lambda x:list(mi() for _ in range(x))
iix = lambda x:list(int(input()) for _ in range(x))
##########

def resolve():
    x,y = mi()
    minval = x * 2
    maxval = x * 4
    invalid  = 1
    if minval<= y and y <= maxval and y%2 == 0:
        invalid = 0
    print("No" if invalid else "Yes")

if __name__ == "__main__":
    resolve()
x, y = map(int, input().split()) #3, 8
ans = "No"
for i in range(1, x+1):
    if (4*i + 2*(x-i)) == y:
        ans = "Yes"
        break
if (2*(x)) == y:
        ans = "Yes"
print(ans)
x,y=map(int,input().split())
if 2*x<=y and y<=4*x and y%2==0:
  print("Yes")
else:
  print("No")
X, Y = map(int, input().split())
for a in range(X+1):
  if 2*a + 4*(X-a) == Y:
    print("Yes")
    exit()
print("No")
x, y = map(int, input().split())
aa =  y - 2 * x
a = aa / 2
print('Yes' if 0 <= a <= x and aa % 2 ==0 else 'No')
x, y = map(int, input().split())

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

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

tei=x*2
kou=x*4

if y%2==0 and tei<=y and kou>=y:
  print("Yes")
else:
  print("No")
n,m  = map(int,input().split())
if m%2==1 or m//2<n or m//2-n>n:
    print('No')
    exit()
print('Yes')
a,b = map(int,input().split())
if b % 2 == 1:
    print("No")
else:
    if a*2 <= b and b<= a*4:
        print("Yes")
    else:
        print("No")
x,y = map(int, input().split())
i = 'Yes' if x * 2 <= y <= x * 4 and y % 2 == 0 else 'No'
print(i)
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')
#!/usr/bin/env python3
import sys
import collections
input = sys.stdin.readline

a,b= map(int,input().split())
if b %2 ==0 :
    B=b//2
    if a<=B and B<=2*a:
        print('Yes')
        sys.exit()
    else:
        print('No')
        sys.exit()
else:
    print("No")
    sys.exit()
x,y=map(int,input().split())
if y%2==0 and y//2-x>=0 and 2*x-y//2>=0:
  print('Yes')
else:
  print('No')