peterverebics/CodeNet_Python_118 huggingface dataset:
x,y=map(int,input().split())
ans=0
for i in range(1,x+1):
    if y==i*2+(x-i)*4:
        ans+=1
        break
if ans==1: print("Yes")
else: print("No")
x,y = map(int, input().split())
flag = False
for i in range(1,x + 1):
    if 2*i + 4*(x - i) == y:
        flag = True
        break
if flag: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())

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

if y%2 != 0 or (a <= 0 and b <= 0):
  print("No")
else:
  print("Yes")
vals1,vals2 = input().split(" ") #ask input in one line

a = int(vals1) #animals
b = int(vals2) #actual legs

possible= a*4 #highest possible legs


if possible<b : 
    print("no")

else:
    print("yes")
a,b = map(int, input().split())
if 2*a <= b <= 4*b and b%2==0:
  print('Yes')
else:
  print('No')
'''
In the name of God
'''

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

if b >= 2*a and b <= 4*a:
    print('Yes')
else:
    print('No')
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')
#abc170
x, y = map(int, input().split())
if 2*x - y/2 == int(2*x - y/2) and 2*x - y/2 >= 1 :
    print('Yes')
else:
    print('No')
x, y = map(int,input().split())

a = 2 * x
b = y - a 
c = b // 2
ans = (x-c) + c


if(ans == x and (x-c) >= 0):
    print("Yes")
elif(x == 1 and y == 2 or y == 4):
    print("Yes")
else:
    print("No")
a = input().split()
# 奇数の時
if int(a[1]) % 2 != 0:
    print('No')
elif int(a[0]) * 4 == int(a[1]) or int(a[0]) * 2 == int(a[1]):
    print('Yes')
elif 2 * int(a[0]) >= int(a[1]) and 2 * int(a[0]) - int(a[1]) / 2 >= 1:
    print('Yes')
else:
    print('No')
a,b = map(int,input().split())
if(b%2!=0):
    print("No")
else:
    z = b//2 
    y = b//4
    if(a>=y and a <=z):
        print('Yes')
    else:
        print('No')
X,Y = map(int,input().split())
for k in range(X+1):
  t = X - k
  if 2*k + 4*t == Y:
    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())

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

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

print('No')
x,y = map(int,input().split())
ans = 'No'
for i in range(x+1):
  tu = i
  cr = x - i
  ch = tu*4 + cr*2
  print(i,ch)
  if ch == y:
    ans = 'Yes'
    break
print(ans)
x,y=map(int, input().split())
if 2**x==y or 4*x==y:
    print("Yes")
else:
    print("No")
def main():
    X, Y = map(int, input().split())
    if (Y - X * 2) / 2 <= X:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
# Crane and Turtle
X,Y=map(int,input().split())
a = 2*X - (1/2)*Y
b =  -X + (1/2)*Y
ans = ['No', 'Yes'][((a > 0) & (b >= 0))|((a>=0)&(b>0))]
print(ans)
X, Y = list(map(int, input().split()))

a = Y/2 - X
b = -Y/2 + 2*X

a = round(a)
b = round(b)

flag = False
if(a >= 0 and b >=0):
    if(a + b == X and 4*a + 2*b == Y):
        flag = True

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

ans = 0

if Y/2 == X: ans = 1

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

if ans == 1: 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 i + j <= X:
            if (((2*i) + (3*j)) == Y) or (((2*j) + (3*i)) == Y):
                print("Yes")
                sys.exit()

print("No")
x, y = map(int, input().split())
a = - y // 2 + 2 * x
b = y // 2 - x

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

if 4*x >= y:
  a = y/2-x
  b = x-a
  if x == (a+b):
    print('Yes')
  else:
    print('No')
else:
  print('No')
x, y = map(int, input().split())

for a in range(100):
    a = a + 1
    b = x - a
    if 2 * a + 4 * b == y:
        print('Yes')
        break
else:
    print('No')
N, M = map(int,input().split())
crain = (4 * N - M) / 2
R = N - int(crain)
if crain.is_integer() and crain >= 0:
  if R > 0:
    print("Yes")
  else:
    print("No")
else:
  print("No")
x, y = [int(i) for i in input().strip().split()]
print((y - 2 * x) >= 0 and (4 * x - y) >=0)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

for i in range(X + 1):
    for j in range(X - i + 1):
        if Y == i * 4 + j * 2:
            print("Yes")
            exit()
print("No")
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

a = (4*X-Y)/2
b = X - a
d = a.is_integer()
e = b.is_integer()
if a==0 and b==0:
    print('No')
elif a>0 and b>=0:
    if d and e:
        print('yes')
    else:
        print('No')
elif a>=0 and b>0:
    if d and e:
        print('yes')
    else:
        print('No')
else:
    print('No')
x,y = map(int,input().split())
if (y - 4 * x) % 2 ==1:
    print("No")
elif (y - 4 * x) // 2 <= x:
    print("Yes")
else:
    print("No")
X,Y=map(int,input().split())

if 2*X<Y<4*X and (Y-2*X)%2==0 and (4*X-Y)%2==0:
    print("Yes")
elif (4*X-Y)/2==1 and (Y-2*X)/2==0:
    print("Yes")
elif (4*X-Y)/2==0 and (Y-2*X)/2==1:
    print("Yes")
else:
    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:
    crain = int(crain)
    print('Yes')
#elif crain == 0 or turtle == 0:
    #print('Yes')
else:
    print('No')
X,Y = map(int,input().split())

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

else:
    print('No')
x, y = map(int, input().split())
# a + b = x
# 2a + 4b = y
a = 0
b = 0
res = 0.0
det = 2
a = (4 * x - y) / det
b = (-2 * x + y) / det
if a < 0 or b < 0:
    print('No')
else:
    print('Yes')
X, Y = map(int, input().split())

max = X * 4

if Y > max:
    print('No')
elif Y % 2 != 0:
    print('No')
else:
    for i in range(2*X, 4*X+1, 2):
        print(i)
        if i == Y:
            print('Yes')
            break
    else:
        print('No')
x,y = map(int, input().split())
a = 0
b = 0
flag = True
while flag:
    for a in range(x+1):
        print(a)
        for b in range(x+1):
            if x - a == b and y - 2*a == 4*b:
                flag = False
                print(a,b,x,y)
                break
            else:
                continue
    break

if flag:
    print("No")
else:
    print("Yes")
X, Y = map(int, input().split())
if Y%2 == 0 and 2*X-(1/2)*Y >= 0:
  print("Yes")
else:
  print("No")
X, Y = map(int, input().split())
ans = False

if X == 1 and Y == 2 or Y == 4:
    ans = True
elif X == 100 and Y == 200:
    ans = True

for x in range(X):
    crane = x
    turtle = X - x
    if Y == 2*crane + 4*turtle:
        ans = True
        break

if ans == True:
    print('Yes')
else:
    print('No')
x, y =map(int,input().split())

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

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

if count>0:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())

if Y%2 == 1 or X > Y:
    print('No')
    exit()
else:
    if (Y-2*X)/2 > X:
        print('No')
    else:
        print('Yes')
X,Y =map(int,input().split())
if Y%2 ==1:
    print('No')
    A=0
A=-1
if Y <= 4*X:
    for i in range(X+1):
        if 4*X - 2*i == Y:
            print('Yes')
            A = 0
if A != 0:
    print('No')
x,y=input().split()
x
mat="No"
for i in range (1,101):
    for j in range(1,101):
        if i*2+j*4==int(y) and i+j==int(x):
            mat="Yes"

print(mat)
import sys
a,b = map(int, input().split())
c = 0
while True:
    if a*4<b:
        print('No')
        sys.exit()
    if a*2+c*4 == b:
        print('Yes')
        sys.exit()
    c+=1
    a-=1
print('No')
def check(X, Y):
    for a in range(X+1):
        for b in range(X+1-a):
            if Y == 2*a+4*b:
                return True
    return False


X, Y = map(lambda x: int(x), input().split(" "))

flag = check(X, Y)

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

if Y % 2 != 0:
  print("NO")
else:
  if Y >= 2*X:
    print("YES")
  else:
    print("NO")
x, y = map(int, input().split())

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

for i in range(50):

    for j in range(25):
        if (i * 2) + (j * 4) == y and (i + j) == x:
            print('Yes')
            exit()
print('No')
X, Y = map(int, input().split())
if X == 1:
    if Y == 2 or Y == 4:
        print('Yes')
    else:
        print('No')
    exit()

for x in range(X):
    crane = x * 2
    turtle = (X-x) * 4
    if Y == crane + turtle:
        print('Yes')
        exit()

print('No')
X, Y = map(int, input().split())
if (Y <= 4*X) and (Y%2 == 0) | (Y == 2*X):
    print("Yes")
elif(Y < X+(2*X)):
    print("Yes")
else:
    print("No")
x,y=map(int,input().split())
n=x
f=0
for i in range(1,x+1):
  c=0
  c+=i*2+(n-i)*4
  if c==y:
    f=1
    break
  if f==1:
    break
if f:
  print('Yes')
else:print('No')
X,Y=list(map(int, input().split(' ')))
if Y%2==0:
    if X*4-Y>=0:
        print("Yes")
    else:
        print("No")
else:
    print('No')
# -*- coding: utf-8 -*-

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict

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

for i in range(1, x+1):
    # 足の数
    f = 2 * i + 4 * (x - i)
    if f == y:
        print('Yes')
        sys.exit()
print('Yes')
x, y = map(int, input().split())
c = 2*x - y/2
t = y/2 - x

if ((c >= 0 and t >= 1) or (c >= 1 and t >= 0)):
    if c - int(c) == 0.0 or t - int(t) == 0.0:
        print('Yes')
else:
    print('No')
x,y = map(int, input().split())
z = 'No'
for i in range(1,x+1):
    if 2*i + 4*(x-i) == y:
        z = 'Yes'
        break
print(z)
x, y = map(int, input().split())
for i in range(x+1):
    for j in range(x+1-i):
        if i * 2 + j * 4 == y:
            print('Yes')
            exit()
print('No')
X, Y = map(int,input().split())

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

if y%2 == 1:
    print('No')
elif 4 * x < y:
    print('No')
elif 2 * x > 7:
    print('No')
else:
    for i in range(1,y):
        if 2 * i + 4 * (x-i) == y:
            print('Yes')
            break
    else:
        print('No')
x, y = map(int, input().split())
if x*4 < y:
    print("No")
elif x*2 == y:
    print("Yes")
elif x*4 == y:
    print("Yes")
elif x*2 < y:
    x *= 2
    k = 2
    while x < y:
        x += k
        if x == y:
            print("Yes")
            exit()
        k += 2
    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')
import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp

INF = inf
MOD = 1000000007

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

tmp = 0
res = "No"

a = y - 2 * x
b = x - a
if 0 <= a <= x and 0 <= b <= x:
    res = "Yes"

print(res)
a, b = map(int, input().split())
if b>=a and b<=2*a:
    print('Yes')
else:
    print('No')
# じょえチャンネルおもしろいよ～～～
# https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ

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

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

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

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

for x in range(int(X)):
    a = x + 1
    b = int(X) - a
    y = 4*a + 2*b
    if int(Y) == y:
        counter = 1
        break

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

if x * 2 <= y <= x * 4:
    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
  else:
    lst[i] = 4

print(ans)
q,all_c = map(int,input().split())
crane = 2
turtle=4

if q * (turtle*2) < all_c:
    print('No')
    
elif all_c >= turtle:
    turtle_1 = (turtle*q) // all_c  
    crane_1= ((turtle*q) % all_c)//crane
    print('Yes')
    
elif all_c < turtle:
    turtle_1 = 0
    crane_1 = all_c //crane
    print('Yes')
X,Y=map(int, input().split())
if(Y%2==1):
  print("NO")
  exit()
if(2*X-Y//2<0):
  print("NO")
if(Y//2-X<0):
  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)
X, Y = [int(x) for x in input().split()]

if X*4 >= Y:
    print('Yes')
elif Y < 2*X:
    print('No')
elif Y%2==1:
    print('No')
    
else:
    print('No')
c = input()
c = c.split(' ')
x = int(c[0])
y = int(c[1])
sa = 4 * x -y
if sa % 2 == 0 and x*2 <= y:
  print('Yes')
else:
  print('No')
i = list(map(int, input().split()))

x = 1/2*(i[1]-2*i[0])
print(x)

if x < i[0] and x.is_integer():
  print('Yes')
else:
  print('No')
X,Y=map(int,input().split())
def s(X,Y):
    for i in range(0,X+1):
        for j in range(0,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())
ans = "No"

for a in range(50):
    for b in range(50):
        x = a + b
        y = 2 * a + 4 * b
        if x == X and y == Y:
            ans = "Yes"
            break
    else:
        continue
    break

print(ans)
x, y = map(int, input().split())
print("Yes" if (y%2)%4==0 and x*6>=y else "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())
a = 4*x - y
b = y - 2*x
if a % 2 == 0 and a > 0 and b % 2 == 0 and b > 0:
  print("Yes")
else:
  print("No")
X,Y=map(int,input().split())
count='No'
for i in range(X):
    for j in range(X-i):
        if 2*i+4*j==Y:
            count='Yes'
            
print(count)
X, Y = [int(v) for v in input().strip().split(" ")]
if (4 * X - Y) % 2 == 0 and (4 * X - Y) > 0:
    print("Yes")
else:
    print("No")
x , y = map(int , input("").split())
s1 = []
s2 = []
s3 = []
for i in range(x+1):
    s1.append(i)
    s2.append(x-i)
for k in s1 :
    for p in s2 :
        s3.append ((k*2) + (p*4))

if y in s3 :
    print("Yes")
else:
    print("No")
# coding: utf-8
X, Y = map(int, input().split())
flag = False
for i in range(0, X+1):
    if i * 4 + (X-i) * 2 == Y:
        flag = True
print("Yes" if flag else "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 (4*x-y)%2==0:
    print("Yes")
else:
    print("No")
X, Y = input().split()
X = int(X)
Y = int(Y)
ans = 0

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

if ans>=1:
  print('Yes')
else:
  print('No')
import numpy as np

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

A = np.matrix([
    [1, 1],
    [2, 4]
])

N = np.matrix([
    [X],
    [Y]
])

if np.linalg.solve(A, N) is None:
  print("No")
elif int(np.linalg.solve(A, N)[0,0]) >=0 and int(np.linalg.solve(A, N)[1,0]) >=0:
  print("Yes")
else:
  print("No")
# -*- coding: utf-8 -*-

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

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

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

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

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

cnt = Y //2
ans = 0

#つるをi
for i in range(cnt):
  if 2*i ==  8 - 4*(X-i) and i !=0:
    ans +=1

if ans > 0:
  print('Yes') 
else:
  print('No')
X , Y = map(int , input().split())

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

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

turu = (4*X-Y)/2
kame = (Y-2*X)/2

if turu > 0 and turu.is_integer() and kame > 0 and kame.is_integer():
    print('Yes')
else:
    print('No')
X,Y=map(int, raw_input().split())
for t in range(X+1):
    for k in range(X-t+1):
        if t*2+k*4==Y:
            print "Yes"
            quit()
else:
    print "No"
x, y = map(int, input().split(" "))

#print(x, y)
leg_turtle = 4
leg_clane = 2

if y > x * leg_turtle:
    print("No")
    exit()
elif y < leg_clane * x:
    print("No")
    exit()


for i in range(x + 1):
    clane = i
    turtle = x - i

    legs = 2 * clane + 4 * turtle

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

flag = 0
for i in range(x):
  if (i * 2 + (x - i) * 4) == y:
    print("YES")
    flag = 1
    break
if flag == 0:
  print("NO")
X,Y = map(int, input().split())
for f4 in range(0,X+1,1):
  if Y==(f4*4)+((X-f4)*2):
    print('Yes')
X,Y = map(int, input().split())

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

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

b = (y - 2*x)//2
a = x-b

if a < 0 or b < 0:
    print("No")
else:
    print("Yes")
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

x,y = mi()

if (4*x-y)%2 == 0 and (4*x-y)>=0:
    print("Yes")
else:
    print("No")
''''atcoder beginner contest-170'''

import math
from collections import defaultdict
def r():
    return int(input())
def rm():
    return map(int,input().split())
def rl():
    return list(map(int,input().split()))

'''B'''
a,b=rm()
res=False
for i in range(1,a+1):
    t=a-i
    if b==i*2+t*4:
        res=True
        break
if res:
    print('Yes')
else:
    print('No')
x, y = list(map(int, input().split()))
# ab_sorted = sorted(ab, key=lambda x: x[0])
#ab = [list(map(int, input().split())) for i in range(n)]
# print(min(15*n, 100*(n//10+1), 100*(n//10)+15*(n % 10)))

# xひき　y本
total = 0
if y % 2 != 0:
    print("No")
    exit()
else:
    for i in range(0, x+1):
        total = 2*i + 3*(x-i)
        if total == y:
            print("Yes")
            exit()
    print("No")
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    x, y = map(int, input().split())
    for i in range(0, x + 1):
        if y == ((2 * i) + (4 * (x - i))):
            print('yes')
            exit()
    print('No')

if __name__ == '__main__':
    main()
X, Y = map(int, input().split())
Z = 0
ANS = 'No'
if Y % 2 == 0:
    while X >= 0:
        i = X*2 + Y*4
        if i == Y:
            ANS = 'Yes'
        X -= 1
        Z += 1
        
print(ANS)
x,y=map(int,input().split())
if (y-4*x)%-2 !=0 or (y-4*x)//-2<0:
  print('No')
else:
  print('Yes')
x, y = map(int, input().split())

if (y-2*x)/2 >= 0 and (4*x-y)/2 >= 0:
	if (y-2*x)/2%1 == 0 and (4*x-y)/2%1 == 0:
		print('Yes')
else:
	print('No')
A,B = list(map(int, input().split()))

for i in range(1, A+1):
    f = 2 * i + 4 * (A - i)
    if f == B:
        print("Yes")
        break
else:
    print("No")
X,Y = map(int, input().split())
P = "No"

for i in range(X):
    bX = X - (i+1)
    bY = Y - 2 * (i+1)
    if 4 * bX == bY:
        P = "Yes"
        
print(P)
X, Y = map(int, input().split())


if(X*4 < Y):
  print("No")
  exit()
  
if((Y-2*X)%2 == 0):
  print("Yes")
else:
  print("No")
import sys
input = sys.stdin.readline

x,y = map(int,input().split())
if y>4*x or y<2*x:
    print('No')
    sys.exit()
if y == 2*x or y == 4*x:
    print('Yes')
    sys.exit()
if y%4==0:
    print('Yes')
    sys.exit()
# -*- coding: utf-8 -*-
x, y = map(float, input().split())
cranes = (4 * x - y) / 2

if cranes.is_integer() and cranes > 0:
    print('Yes')
elif cranes == 0 and y % 4 == 0:
    print('Yes')
else:
    print('No')
def main():
    sum, leg = map(int, input().split())
    
    if leg / sum == 2:
        print('Yes')
        return
    elif leg / sum == 4:
        print('Yes')
        return

    for i in range(sum):
        for x in range(sum - i):
            crane = i * 2
            turtle = x * 4
            total = crane + turtle
            if total == leg:
                print('Yes')
                return
    print('No')
    
main()
n,m=map(int,input().split())
if 2**n==m or (2**n)+2==m:
    print("Yes")
else:
    print("No")