peterverebics/CodeNet_Python_118 huggingface dataset:
num_animals, num_legs = list(map(int, input().split()))
# print(crane, turtle)

num_turtle = -num_animals + (num_legs / 2)
num_cranies = num_animals - num_turtle
# print(num_turtle, num_cranies)

answer = num_turtle >= 0 and num_turtle.is_integer() and num_cranies >= 0 and num_cranies.is_integer()
answer = 'Yes' if answer else 'No'

print(answer)

# a + b = X
# 2a + 4b = Y

# a = X - b
# 2(X - b) + 4b = Y
# 2X - 2b + 4b = Y
# 2X + b(-2 + 4) = Y
# 2X + 2b = Y
# 2b = -2X + Y
# b = -X + Y
x, y = list(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())

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

print("No")
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)
import itertools
import decimal
import math
import collections
import sys
input = sys.stdin.readline

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

#ListA=list(map(int,input().split()))


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

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

ans = 'No'

#足が偶数であること
if Y%2 ==0:
    for i in range(X + 1):
        if (i * 2) + ((X - i) * 4) == Y:
            ans = 'Yes'
            break

print(ans)
x,y=map(int,input().split())
#x匹でy本
if y<2*x or 4*x<y or y%2==1:
  print("No")
else:
  print("Yes")
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')
X,Y = map(int,input().split())
for i in range(X+1):
    tmp = 2 * i + 4 * (X-i)
    if(tmp == Y):
        print("Yes")
        exit()
print("No")
S=list(map(int,input().split()))

if S[1]%2==0:
  if S[0]*2<=S[1]<=S[0]*4:
    print("Yes")
  else:
    print("No")
else:
  print("No")
X, Y = map(int, input().split())
count = 0
ans = 0

for i in range(X+1):
    count = 2*i + 4*(X-i)
    if(count == Y):
        ans = 1
        break
    else:
        ans = 2

if(ans == 1):
    print('Yes')
else:
    print('No')
import sys
import time
import math
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()
# ------------------------------

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

# ------------------------------
ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)
import sys
x,y=map(int,input().split())
num=2*x

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

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

for i in range(X+1):
    j = X-i
    if Y==i*2+j*4:
        print("Yes")
        break
else:
    print("No")
x,y = map(int,input().split())
flg = 0
for i in range(0, x+1):
    ans = 2*i+4*(x-i)
    if ans == y:
        flg = flg + 1
if flg >= 1:
    print('Yes')
else:
    print('No')
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")
# N = int(input())
X, Y = [int(i) for i in input().split()]
for i in range(0, X+1):
    if i * 2 + (X-i) * 4 == Y:
        print('Yes')
        break
else:
    print('No')
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")
x,y = map(int,input().split())

l = []
flag = False

for i in range(x+1):
    l.append((i,x-i))

for xx,yy in l:
    if y == (xx*2+yy*4):
        flag = True
        break
if flag:
    print("Yes")
else:
    print("No")
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')
x,y=map(int,input().split())
for i in range(x+1):
  t=i*2+(x-i)*4
  if y==t:
    print("Yes")
    exit()
print("No")
H, L = map(int, input().split())
if((H*2 <= L) and (H*4 >= L)):
  if(L%2 == 0):
    print('Yes')
  else:
    print('No')
else:
  print('No')
x, y = map(int, input().split())
if y%2:
    print('No')
else:
    if (y//2-x)<0 or (2*x-y//2)<0:
        print('No')
    else:
        print('Yes')
X,Y=map(int, input().split())
#
if Y%2==0 and 2*X<=Y<=4*X:
    print("Yes")
else:
    print("No")
from sys import stdin
from sys import setrecursionlimit
setrecursionlimit(10 ** 7)

x,y = map(int,stdin.readline().rstrip().split())

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

print("No")
import sys
x,y = list(map(int, input().split()))

tsuru = x
kame = 0

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

print('No')
a,b=map(int,input().split())
c = b-2*a
d = 4*a - b
if c%2 ==0 and d%2 ==0 and c >=0 and d>=0:
    print("Yes")
else:
    print("No")
x,y = map(int,input().split())
if((x * 2) <= y)and(y <= (x * 4)):
    if(y % 2 == 0):
        print("Yes")
    else:
        print("No")
else:
    print("No")
X, Y = map(int, input().split())
if X * 4 < Y:
    print("No")
elif X * 2 > Y:
    print("No")
elif (X * 4 - Y) % 2 == 0:
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())
lst = []
ans = 'No'

for i in range(x):
  lst.append(2)

for i in range(x):
  if sum(lst) == y:
    ans = 'Yes'
    break
  lst[i] = 4
    
if sum(lst) == y:
    ans = 'Yes'
    
print(ans)
x, y = map(int, input().split())
a = 0

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

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

for i in range(X + 1):
    tsuru = i
    kame = X - i
    if tsuru * 2 + kame * 4 == Y:
        print('Yes')
        exit()
print('No')
X, Y = map(int, input().split())
counter = 0
if Y % 2 != 0:
    print("No")
    quit()
else:
    while X >= 0:
        i = (X * 2) + (counter * 4)
        if i == Y:
            print("Yes")
            quit()
        X -= 1
        counter += 1
print("No")
x,y=map(int,input().split())
 
if(y%2==0 and y>=2*x and y<=4*x):
  print("Yes")
  
else:
  print("No")
def q2():
    x, y = [int(i) for i in input().split(" ")]
    if y % 2 != 0:
        print("No")
        return
    if (2 * x) <= y and y <= (4 * x):
        print("Yes")
        return
    print("No")


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

for k in range(x+1):
    kame = k
    turu = x-k
    ashi = 2*turu + 4*kame
    if ashi==y:
        count += 1
        break

if count>0:
    print('Yes')
else:
    print('No')
def resolve():
    x, y = map(int, input().split())
    for i in range(x):
        if i * 2 + (x - i) * 4 == y or i * 4 + (x - i) * 2 == y:
            print("Yes")
            return

    print("No")

resolve()
def calc(X, Y):
    if Y % 2 == 1:
        return 'No'
    elif Y >= 2 * X and Y <= 4 * X:
        return 'Yes'
    else:
        return 'No'

    

(X, Y) = tuple([int(s) for s in input().split()])
print(calc(X, Y))
X,Y = map(int,input().split())
ans = 'No'
for i in range(X + 1):
    if (i * 2) + ((X-i) * 4) == Y:
        ans = 'Yes'

print(ans)
import numpy as np
import math
import scipy as sp
import queue
import collections

MOD = 10 ** 9 + 7
INF = 10 ** 9

def main(kwargs):
    x = kwargs["x"]
    y = kwargs["y"]
    res = "No"

    if y - 2 * x >= 0 and (y - 2 * x) % 2 == 0 and 4 * x - y >= 0 and (4 * x - y) % 2 == 0:
        res = "Yes"

    return res

if __name__ == "__main__":
    kwargs = {}

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

    cout = main(kwargs)
    print(cout)
X,Y = map(int, input().split())
ans = 'No'
for i in range(X+1):
    for j in range(X+1):
        if i + j == X and 2 * i + 4 * j == Y:
            ans = 'Yes'
print(ans)
x,y = map(int, input().split())
area = y-(x*2)
if y>=x*2 and y<=x*4 and area%2 == 0 :
    print("Yes")
else:
    print("No")
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	B
# CreatedDate:  2020-06-14 21:02:42 +0900
# LastModified: 2020-06-14 21:11:18 +0900
#


import os
import sys
#import numpy as np
#import pandas as pd
from numpy.linalg import solve

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



if __name__ == "__main__":
    main()
x,y = map(int,input().split(" "))
msg = "No"
for i in range(x+1):
    if 2*i+4*(x-i)==y:
        msg="Yes"
print(msg)
X, Y = map(int,input().split())

T = 0
K = X

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

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

# a + b = X
# 2a + 4b = Y

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

print(ans)
X, Y = map(int, input().split())
if Y % 2 == 1:
    print("No")
else:
    k = Y/2
    q = Y/4
    if q <= X and X <= k:
        print("Yes")
    else:
        print("No")
x, y = map(int, input().split())
check = y % 2 == 0 and 2 * x <= y <= 4*x
print("Yes" if check else "No")
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')
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)
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())

t = 2
k = 4

flg = False
for i in range(x):
    if t*i + k*(x-i) == y or t*(x-i) + k*i == y:
        flg = True

if flg == True:
    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())
ans = 'No'
for i in range(0,x+1):
  siki = 2 * i + 4 * (x-i)
  if(y == siki):
    ans = 'Yes'
    break
print(ans)
import sys

sys.setrecursionlimit(1000000)

import bisect
import math
import collections
import heapq


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


if __name__ == "__main__":
    X, Y = tuple(map(int, input().split(" ")))
    print(solve(X, Y))
#from itertools import Combinations
a,b = map(int,input().split())
x = 'No'
for i in range(a+1):
    t = a - i
    if 2 * i + 4 * t == b:
        x = "Yes"
print(x)
x, y = map(int, input().split())
ans = False
for c in range(x + 1):
    t = x - c
    if c + t == x and 2*c + 4*t == y:
        ans = True
        break
print('Yes' if ans else 'No')
a = input().split()
b = int(a[0])
c = int(a[1])

X = 2
Y = 4
for i in range(b+1):
    if b == 1 and c == 2:
        print('Yes')
        break
    elif b == 1 and c == 4:
        print('Yes')
        break
    d = b-i
    if X*i + Y*d == c:
        print('Yes')
        break
    elif i == b:
        print('No')
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')
x,y = map(int,input().split())
print("Yes" if 2*x <= y  and y <= 4*x and y%2 == 0 else "No")
X,Y = map(int,input().split())
tsuru = 0
kame = X
ashi = 0
flag = False
for i in range(X+1):
    ashi = tsuru * 2 + kame * 4
    if(Y == ashi):
        flag = True
        break
    tsuru+=1
    kame-=1

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

if 2*X > Y or 4*X < Y or Y%2 != 0:
    print('No')
else:
    print('Yes')
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)
X,Y=map(int,input().split())
re='No'
for i in range(X+1):
    if (X-i)*2+(i*4)==Y:
        re='Yes'
        break
print(re)
x,y = map(int,input().split())
ans = 1 if x*2<=y<=x*4 and y%2==0 else 0
print('Yes' if ans==1 else 'No')
import sys
from collections import defaultdict
readline = sys.stdin.buffer.readline
#sys.setrecursionlimit(10**8)


def geta(fn=lambda s: s.decode()):
    return map(fn, readline().split())


def gete(fn=lambda s: s.decode()):
    return fn(readline().rstrip())


def main():
    x, y = geta(int)

    m2, n2 = y - 2 * x, 4 * x - y

    if m2 & 1 == 0 and n2 & 1 == 0 and m2 >= 0 and n2 >= 0:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()
x, y = map(int, input().split())
ashi = [2*x+2*e for e in range(x+1)]
if y in ashi:
  print('Yes')
else:
  print('No')
X,Y = map(int,input().split())

key1 = Y - 2*X
key2 = 4*X - Y



if key1 % 2 != 0:
    print('No')
elif key2 % 2 != 0:
    print('No')
elif key1 < 0:
    print('No')
elif key2 < 0:
    print('No')
else:
    print('Yes')
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())

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

result = 'No'
li = []
for i in range(X):
    li.append(4)
if sum(li) == Y:
    result = 'Yes'
else:
    for i in range(X):
        li[i] = 2
        if sum(li) == Y:
            result = 'Yes'
            break

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

for a in range(X+1):
  b = X - a
  if a * 2 + b *4 == Y:
    ans = 'Yes'
    
print(ans)
x,y = map(int,input().split())
ans = 'No'
for i in range(x+1):
    j = x - i
    if 2*i + 4*j == y:
        ans = 'Yes'
print(ans)
tmp = input().split(" ")
total = int(tmp[0])
leg = int(tmp[1])
 
if leg % 2 == 0 and 4 * total >= leg >= 2 * total:
  print("Yes")
else:
  print("No")
x,y=map(int,input().split())
for i in range(100):
	for j in range(100):
		if i+j==x and 2*i+4*j==y:
			print('Yes')
			exit()
print('No')
X, Y = map(int, input().split())
if Y > 4*X:
    print("No")
    exit()

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

if Y < 2*X:
    print("No")
    exit()


print("Yes")
x, y = list(map(int, input().split()))
b = (y - 2 * x) / 2

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

ans = 0

if Y/2 == X: ans = 1

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

if ans == 1: print('Yes')
else: print('No')
arr = list(map(int, input("").split()))
x=2*arr[0]
y=4*arr[0]

if arr[1]>=x and arr[1]<=y and arr[1]%2==0:
    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")
n, m = map(int, input().split())
a =0
for i in range(n+1):
    for s in range(0, n+1-i)[::-1]:
        if 4*(i) + 2*(n-i) == m:
            a = a + 1
        else:
            a = a
if a > 0:
    print('Yes')
else:
    print("No")
import sys
x,y=map(int,input().split())
if x==1:
    if 2*x==y or 4*x==y:
        print('Yes')
        sys.exit()
for i in range(x+1):
  if 2*x>y:
    break
  if 2*i+4*(x-i)==y:
    print('Yes')
    sys.exit()
 
print('No')
x, y = map(int, input().split())

for a in range(x+1):
    b = x - a
    if a*2 + b*4 == y:
        print('Yes')
        break
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')
# coding: utf-8
# Your code here!
import sys
read = sys.stdin.read
readline = sys.stdin.readline

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

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

add = 0
flag =0

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

if flag == 0:
    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 * 4 < Y or X * 2 > Y:
    print('No')
elif Y % 2 == 1:
    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")
        exit(0)
print("No")
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')
x, y = map(int, input().split())

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

if x * 4 >= y and x * 2 <= y:
    print('Yes')
    exit()

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



if __name__ == "__main__":
    main()
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())

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

flag = 0

for i in range(101):
    for j in range(101):
        if i+j == x:
            if 2*i+4*j == y:
                print("Yes")
                flag += 1
                break
    else:
        continue
    break

if flag==0:
    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 2*X<= Y <=4*X and Y%2==0:
  print("Yes")
else:
  print("No")
head, foot = map(int,input().split())
ans = 'No'
for i in range(head+1):
  if i*2 + (head-i)*4 == foot:
    ans = 'Yes'
print(ans)
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')
x,y = map(int,input().split())
if y%2 != 0: print('No')
elif 2*x <= y and y <= 4*x: print('Yes')
else: print('No')
import sys

def input():
    return sys.stdin.readline().strip()

def main():
    x, y= map(int, input().split())
    if y % 2 == 1 or 4*x < y or y < 2*x:
        print("No")
        return
    print("Yes")



main()
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())
for i in range(x+1):
  a,b=i,x-i
  if 2*a+4*b==y:
    print('Yes')
    exit()
print('No')
import sys
x,y = map(int,input().split())
# x = list(map(int,input().split()))
a = 2*x - y/2
b = y/2 - x
if (a >= 0) & (b >= 0):
    if (a.is_integer()) & (b.is_integer()):
        print('Yes')
        sys.exit()
print('No')
x,y=map(int,input().split())
import math

#yをxこの2,4の組み合わせで記述できるか
#yを4で割った余りが0か2で
#あまり無し商<=x あまりあり商＋１<=x
#y=100の時には少なくとも25匹いればよい
#y=102の時は？　少なくとも100//4+1匹＝ceil((102/2)/2)匹
#逆にy=100の時xの上限は　50

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

if 0<=(4*X-Y)//2<=X and (4*X-Y)%2==0:
    print('Yes')
    exit(0)

print('No')
x,y = map(int, input().split())
tur = (y-x*2)/2

if y%2 == 0 and 0 <= tur and tur <= x:
    print("Yes")
else:
    print("No")
def run(x, y):
    '''
    '''
    for i in range(x + 1): # turtle
        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)
X, Y = map(int, input().split())
if 2*X<=Y<=4*X and Y%2==0:
   print('Yes')
else:
   print('No')
def test():
    x, y = map(int, input().split())
    if y&1:
        print("No")
        return
    print("Yes" if 2*x<=y<= 4*x else "No")
test()
x, y = map(int,input().split())
for i in range(x+1):
    if 4*i + 2*(x-i) == y:
        print("Yes")
        break
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(0)
print('No')
x, y = map(int,input().split())

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

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

for i in range(1,x + 1):
    if 2 * i + 4 * (x-i) == y:
        print('Yes')
        sys.exit()
        
for i in range(1,x + 1):
    if 4* i + 2* (x-i) == y:
        print('Yes')
        sys.exit()
print('No')
import sys
input = sys.stdin.readline
import math

x, y = map(int, input().split())
for i in range(x + 1):
    if i * 2 + (x - i) * 4 == y:
        print("Yes")
        exit()
print("No")
animalNum,footNum = map(int,input().split())
kameFoot = 2
turuFoot = 4
totalFoot = 0
ansList = ["Yes","No"]
isYes = False
for i in range(animalNum + 1):
    totalFoot = (kameFoot * i + (turuFoot * (animalNum - i)))
    if(totalFoot == footNum):
        isYes = True
        
if(isYes):
    print(ansList[0])
else:
    print(ansList[1])
# -*- coding: utf-8 -*-
x, y = map(int, input().split())
t = (4*x-y)/2
k = (y-2*x)/2
a = t.is_integer()
b = k.is_integer()
if a == True and b == True and t >= 0 and k >= 0:
    print("Yes")
else:
    print("No")
x, y = map(int,input().split())
leg = 2*x
if y==leg:
    print('Yes')
    exit()
for i in range(1,x+1):
    leg += 2
    if y==leg:
        print('Yes')
        exit()
print('No')
x, y = list(map(int, input().split()))

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

print('No')
a = input()
a, b = a.split()
for i in range(int(a) + 1):
  if i*2 + (int(a) - i)*4 == int(b):
    print("Yes")
    exit()
print("No")
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")
x, y = map(int,input().split())
if (y - 2*x) % 2 == 0 and (y-2*x) //2 <= x and (y-2*x) //2 >= 0:
    print('Yes')
else:
    print('No')
a,b=map(int,input().split())


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