peterverebics/CodeNet_Python_118 huggingface dataset:
x, y = map(int, input().split())

if y % 2 != 0:
  print("No")
  exit()
elif 4 * x < y:
  print("No")
  exit()
elif 2 * x > y:
  print("No")
  exit()

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")
a,b=map(int,input().split())
if a*2<=b and b<=4*a and b%2==0:
  print("Yes")
else:
  print("No")
#B
x,y=map(int,input().split())
a=0
if (4*x-y)%2==0 and (4*x-y)>=0 and (-2*x+y)>=0:
    print('Yes')
else:
    print('No')
X, Y = map(int, input().split())
turu = 0
kame = 0

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

print('No')
x ,y = map(int, input().split())
if (y - 2*x) % 2 == 0 and (y - 2*x) / 2 >= 0 and (y - 2*x) / 2 <= x:
    print("Yes")
else:
    print("No")
x,y=map(int,input().split())
flag=False
for i in range(x+1):
  if 2*(i)+4*(x-i)==y:
    flag=True
if flag:
  print("Yes")
else:
  print("No")
x,y=map(int,input().split())
print('YNeos'[y%2 or x*2<y//2 or y//2<x::2])
a=[int(i) for i in input().split()]
H=0
while (a[0] >= 0):
    if a[1] == 2*a[0]:
        print("Yes")
        H=1
        break
    a[1]-=4
    a[0]-=1

if H == 0:
    print("No")
x,y=map(int,input().split())
if x*2<=y<=x*4 and y%2==0:
    print("Yes")
else:
    print("No")
import numpy as np
num_list = []

def leg_num(c, t):
    return 2*c+4*t

for i in range(1, 101):
    leg_num_list = []
    for j in range(i):
        if leg_num(j, i-j) <= 100:
            leg_num_list.append(leg_num(j, i-j))
        if leg_num(i-j, j) <= 100:
            leg_num_list.append(leg_num(i-j, j))
    num_list.append(leg_num_list)

x, y = map(int, input().split(" "))
if y in num_list[x-1]:
    print("Yes")
else:
    print("No")
# -*- coding: utf-8 -*-
x, y = map(int, input().split())

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

if a<0 or b<0:
    print('No')
else:
    if (a-int(a)) != 0 or (b-int(b)) != 0:
        print('No')
    else:
        print('Yes')
x, y = tuple(map(int, input().split()))

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

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

print("No")
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())
ans='No'
for i in range(x+1):
    if y == 2*i+4*(x-i):
        ans='Yes'
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())
t=X
c=0
for i in range(X+1):
  if 4*t+2*c == Y:
    print("Yes")
    exit()
  else:
    t -= 1
    c += 1
print("No")
x, y = map(int, input().split(' '))
result = False
for i in range(x+1):
    if (4 * (x - i) + 2 * i) == y:
        result = True
        break
s = 'Yes' if result else 'No'
print(s)
a,b = map(int, input().split())
if (b%2 != 0):
  print("No")
  exit()
max = 4*a
if (b <= max):
  for _ in range(a+1):
    if(max==b):
      print("Yes")
      exit()
    max-=2
  print("No")
else:
  print("No")
x,y=map(int,input().split())
for i in range(x+1):
    if(4*x-2*i==y):
        print('Yes')
        break
else:
    print('No')
x, y = map(int, input().split())
ans = 'No'
for a in range(x+1):
    if 2*a + 4*(x-a) == y:
        ans = 'Yes'
        break
print(ans)
import sys

if __name__ == "__main__":
    for line in sys.stdin:
        anis, legs = map(int, line.split(' '))
        if legs % 2 == 1 or legs > anis * 4 or legs < anis * 2:
            print("No")
        else:
            print("Yes")
x,y=map(int,input().split())
if y>x*4:
    print("No")
elif y%2!=0:
    print("No")
elif y<=x:
    print("No")
elif y<x*2:
    print("No")
else:
    print("Yes")
import numpy as np
A = np.array([[1, 1], [2, 4]])
Ai = np.linalg.inv(A)
B = [int(i) for i in input().split()]
B = np.array(B)
X = Ai.dot(B)
if X[0] >= 0 and X[1] >= 0 and X[0]-int(X[0]) == 0 and X[1]-int(X[1]) == 0:
  print("Yes")
else:
  print("No")
x,y=map(int,input().split())

ans=True
if y<2*x or y>4*x:
    ans=False
if y%2!=0:
    ans=False

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

print(ans)
import sys

X, Y = map(int,input().split()) #X_動物の数　Y_脚の数


ALL = X*2
for i in range(X+1):
    if ALL == Y:
        print('Yes')
        sys.exit()
    
    ALL += 2

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

a = (-2x + y) / 2
b = (4x - y) / 2
"""

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())
 
for i in range(x+1):
    asi = 0
    for j in range(x+1):
        if i + j != x:
            continue
        asi = i * 4 + j * 2
        if asi == y:
            print("Yes")
            exit()
print("No")
def main():
    X, Y = map(int,input().split())

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

if __name__ == "__main__":
    main()
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")
		break
	elif i == x - 1:
		print("No")
X, Y = map(int, input().split())

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

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

print(out)
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 read():
    return list(map(int, input().split()))
x, y = read()
tu = 2 * x
ka, mod = divmod(y - tu, 2)
if 0 <= ka <= x and mod == 0:
    print("Yes")
else:
    print("No", )
x,y = map(int,input().split())

if x*2 == y:
  print('Yes')
  exit()

if x*4 == y:
  print('Yes')
  exit()

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

print('No')
X,Y = (int(x) for x in input().split())
a = 4*X-Y
b = Y-2*X
if a>=0 and b>=0 and a%2==0 and b%2==0:
  print('Yes')
else:
  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'
print(ans)
# coding:utf-8

X, Y = list(map(lambda x:int(x), 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())
if (2*x > y) | (4*x < y):
    print('No')
elif (2*x==y) | (4*x==y):
    print('Yes')
elif (4*x-y) % 2 == 0:
    print('Yes')
else:
    print('No')
x, y = map(int, input().split())

if (y % 2 == 1):
    print("No")
elif (x * 2 <= y <= x * 4):
    print("Yes")
else:
    print("No")
n,l = map(int,input().split())

if l%2 != 0:
    print('No')
elif l < 2*n:
    print('No')
else:
    if l/n <= 4:
        print('Yes')
    else:
        print('No')
x,y  = map(int,input().split())
hon = 0
flag = False
for i in range(1,x+1):
    turu = i
    kame = x - i

    hon=2*turu+4*kame
    if hon == y:
        flag = True
        
for i in range(1,x+1):

    turu = x-i
    kame = i 

    hon=2*turu+4*kame
    if hon == y:
        flag = True
    
if flag == True:
    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())

if Y%2==0:
    MIN = X*2
    MAX = X*4
    if MIN<=Y and MAX>=Y:
        print("Yes")
    else:
        print("No")
else:
    print("No")
import sys
x, y = [int(i) for i in input().split()]
z = [0]*2

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

for i in range(1, x+1):
  z[0] += 2
  z[1] += 4

if y >= z[0] and y <= z[1]:
  print('Yes')
else:
  print('No')
x, y = [int(e) for e in input().split()]

if y % 2 == 0 and x * 2 <= y and x * 4 >= y:
    print('Yes')
else:
    print('No')
head, leg = [int(idx) for idx in input().split()]
crane = 2
turtle = 4
for idx in range(0,head+1):
  ans1 = 0
  ans2 = 0
  ans1 = crane*idx
  ans2 = turtle*(head-idx)
  if ans1 + ans2 == leg:
    print('Yes')
    break
  elif idx == head:
    print('No')
def main():
    x, y = list(map(int, input().split()))

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


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

crane = 0
turtle = X

while turtle >= 0:

    allLegs = crane * 2 + turtle * 4
    if allLegs == Y:
        print("Yes")
        exit()

    crane += 1
    turtle -= 1

print("No")
N = input().split()
X = int(N[0])
Y = int(N[1])

flag = False

for i in range(X):
    if flag:
        break

    if (X-i)*2 + i*4 == Y:
        flag = True
    
    if (X-i)*4 + i*2 == Y:
        flag = True

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

for i in range(X+1):
    f = (2 * i) + 4 * (X - i)
    if f == Y:
        print("Yes")
        break
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')
        exit()
print('No')
X,Y = map(int, input().split())
answer = []
for i in range(X):
    i += 1
    answer.append(i * 4 + (X - i) * 2)
    answer.append(i * 2 + (X - i) * 4)
if Y in answer:
    print("Yes")
else:
    print("No")
##B
X,Y = map(int,input().split())

if Y % 2 == 1:
    print("No")
elif X*4 < Y:
    print("No")
elif X*2 > Y:
    print("No")
else:
    print("Yes")
X, Y = [int(x) for x in input().split()]
check = True
if X*4 < Y:
    check = False
elif Y < 2*X:
    check = False
elif Y%2==1:
    check = False

if check:
    print('Yes')
else:
    print('No')
def main():
    x, y = map(int, input().split())
    if x * 4 < y or x * 2 > y or y % 2 != 0:
        print('No')
    else:
        print('Yes')


if __name__ == "__main__":
    main()
a,b=map(int,input().split())
if round(b/4)<=a and b//2>=a:
    print('Yes')
else:
    print('No')
print("YNeos"[eval("2*"+input().replace(" ","-"))%2 > 0::2])
x,y = map(int, input().split())

for t in range(101):
    k = x-t
    if y==t*2+k*4:
        print("Yes")
        exit()
print("No")
x,y = map(int,input().split())
if y%2==0 and x*4 >=y:
    print('Yes')
else:
    print('No')
x, y = list(map(int, input().split()))

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

a = x * 4

if a < y:
    print('No')
    exit(0)
    
if x == y:
    print('No')
    exit(0)
    
print('Yes')
x,y = input().split()
a = (2 * int(x)) - (int(y)/2)
b = (int(y)/2) - int(x)

if (a + b == int(x)) and ((2*a) + (4*b) == int(y)) and a>=0 and b>=0:
    print("yes") 
else:
    print("no")
x,y = map(int,input().split())
#if (2*x)<y:
z=y-(2*x) #12本足りない z=12
a=z/2 #a=6 亀に変身する鶴の数

if a<=x and a>=0 and z%2==0:
    print('yes')
else:
    print('no')
x, y = map(int, input().split())
if y > x*4 or y < x*2 or y&2 == 1:
  print("No")
else:
  print("Yes")
x,y = map(int,input().split())
c = x * 2
for _ in range(x):
  if c == y:
    print("Yes")
    quit()
  elif c > y:
    print("No")
    quit()
  c += 2
print("No")
def main():
    x, y = map(int, input().split())
    if x * 4 <= y or y % 2!=0:
        print('No')
    else:
        print('Yes')


if __name__ == "__main__":
    main()
x,y = map(int, input().split())
for i in range(1, x + 1):
    turu = i
    kame = x - i
    if turu * 2 + kame * 4 == y:
        print('Yes')
        exit()
print('No')
X,Y= map(int, input().split())
ans='Yes'
for i in range(X+1):
    if Y!=2*i+4*(X-i):
        print('No')
        break
print('No')
x, y = list(map(int,input().split()))
ans = y / 2 - x 
if y % 2 != 0:
    print("No")
elif ans <= x or ans == x:
    print("Yes")
else:
    print("No")
import sys
import numpy as np
import math
from collections import deque 
from functools import reduce

# input = sys.stdin.readline

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

x2 = y // 2
xe = y // 4

if (x <= x2 and x >= xe):
    print("Yes")
else:
    print("No")
a,b = list(map(int,input().split()))

turu = 2
kame = 4
flag = 0

for x in range(a + 1):
    # print("xです{}".format(x))
    for y in range(a + 1):
        # print("yです{}".format(y))
        if kame * x + turu * y == b and (x + y) <= a:
            flag += 1
if flag == 0:
    print("No")
else:
    print("Yes")
x, y = map(int, input().split())

c = 0

while x >= 0:
    if c * 2 + x * 4 == y:
        break 
    c += 1
    x -= 1
else:
    print("No")

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

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

ans = "Yes" if (a >= 0 and b >= 0) else "No"
print(ans)
import sys

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

#鶴a匹、亀x-a匹とする
for a in range(1, x + 1):
  if y == 4 * x - 2 * a:
    print('YES')
    sys.exit()
    
print('NO')
a = list(map(int, input().split()))

res = 0
s = ''
for i in range(a[0]):
    if a[0] * 4 < a[1] or a[0] * 2 > a[1]:
        s = 'No'
        break
    if (a[0] == i + 1) and (res + 2 == a[1] or res + 4 == a[1]):
        s = 'Yes'
    if (a[0] - i) * 4 > a[1] and ((res + 4) + ((a[0] - i + 1) * 2) > a[1]):
        res += 2
        continue
    else:
        res += 4
        continue
if s == '':
    s = 'No'
print(s)
a,b =  map(int,input().split())


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

for i in range(1,101):
    if x - i == 0:
        break
    else:
        for j in range(1,x - i + 1):
            if 2 * i + 4 * j == y:
                print("Yes")
                exit()
print("No")
X,Y = map(int,input().split())
if Y % 2 !=0:
    a = "NO"
else:
    t = 2*X-Y/2
    k = Y/2-X
    if int(t)<0 or X<int(t):
        a = "No"
    elif int(k)<0 or X<int(k):
        a = "No"
    else:
        a = "Yes"
print(a)
X,Y=map(int,input().split())
if 2*X<=Y and Y<=4*X:
    print('Yes')
else:
    print('No')
def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    X, Y = input_number_list()
    if X > 51:
        print("No")
    elif Y < 2:
        print("No")
    else:
        print(['No', 'Yes'][2*X <= Y <= 4*X])


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

turu = (4*x-y)//2
kame = x-turu

if (turu < 0):
    print("No")
    exit()

if ((y-turu*2) // 4 == kame):
    print("Yes")
else:
    print("No")
def resolve():
    x, y = map(int, input().split())
    if 1<= (4*x-y) / 2 <= (x-1):
        print("Yes")
    else:
        print("No")
resolve()
X,Y = map(int, input().split())

for kame in range(1,X):
    if (2*(X-kame)+4*kame)==Y:
        print("Yes")
        break
else:
    print("No")
import sys
def main():
    x, y = map(int, input().split())
    
    for i in range(0, x+1):
        for j in range(0, x-i+1):
            res = i * 2 + j * 4
            if y == res and res > 0:
                print('Yes')
                sys.exit()
                
    print('No')

if __name__ == '__main__':
    main()
i = list(map(int, input().split()))

x = 1/2*(i[1]-2*i[0])
print(x)
if x < i[0] & isinstance(x, int):
  print('Yes')
else:
  print('No')
import sys

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

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

turu = (4 * X - Y) / 2

if turu.is_integer() and turu > 0:
    print("Yes")
else:
    print("No")
# coding: utf-8
# Your code here!

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

if(y > x*4):
    print("No")
else:
    if(y%2 == 1):
        print("No")
    else:
        print("Yes")
x,y=map(int,input().split())
a=y
a -= 2*x
if a < 0 or a >= 2*x:
    print("No")
else:
    print("Yes")
#Take the value of X
#Take the value of Y
#Do double equation

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

C = (Y-4*X)/-2

T = X - ((Y-4*X)/-2)

total = int(T + C)

if (T<0) or (C<0):
    print("No")
elif (T+C) == X and (4*T + 2*C) == Y:
    print("Yes")
else:
    print("No")
X, Y = map(int, input().split())

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

k = n*4

r = k-m

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

# print(y-x*2)
if y-x*2 <= x:
    print('Yes')
else:
    print('No')
a, b = map(int, input().split())

c = b//4
print(c)
if c > a:
    print("No")
    exit()
for i in range(0, b):
    for j in range(0, b):
        if i*2 + j*4 == b:
            print("Yes")
            exit()
    else:
        print("No")
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")
values = input().split()
print(values)

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

max_possible_legs = num_animals*4
min_possible_legs = num_animals*2

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

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

else:
    print("No")
x, y = map(int, input().split())
judge='No'
if(y%2==1):
  judge='No'

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

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

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

print("No")
import sys
def main():
    x, y = map(int, input().split())
    
    for i in range(0, 3):
        for j in range(0, 3-i):
            res = i * 2 + j * 4
            if y == res:
                print('Yes')
                sys.exit()
                
    print('No')

if __name__ == '__main__':
    main()
# 170 B

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

for i in range(1, x+1):
    tot = (i * 2) + ((x - i) * 4)
    if tot == y:
        res = "Yes"
        break

print(res)
i = list(map(int, input().split()))
if i[1]%2 == 1:
  print('No')
  exit()

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

if 0 <= x < i[0] and x.is_integer():
  print('Yes')
else:
  print('No')
x,y=map(int,input().split())
#x匹でy本
if y<2*x or 4*x>y:
  print("No")
else:
  print("Yes")
x,y = map(int,input().split())

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

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

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

var=Y-2*X
var2=var/2
print(var2)
if  var2.is_integer()==True:
    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)) and Y//2-X>0 and -Y//2+2*X>0:
    print("Yes")

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

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

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

print("No")
given = input()

data = given.strip().split()
X = int(data[0])
Y = int(data[1])

i = 0
ashi = 0
while (i < X):
    ashi = 2 * (X - i) + 4 * i
    if ashi == Y:
        print("Yes")
        break
    i = i + 1

if i == X:
    print("No")
# -*- coding: utf-8 -*-
x, y = map(int, input().split())
for kame in range(x):
  if kame * 4 + (x - kame) * 2 == y:
    print('Yes')
    exit()
print('No')
X,Y=map(int,input().split())
flg=False
for i in range(1,X+1):
    for j in range(X+1-i):
        if i*2+j*4 == Y or j*2+i*4 == Y:
            print("Yes")
            flg=True
            break
    if flg:
        break

if flg==False:
    print('No')
x,y = map(int,input().split())
for a in range(0,101):
    if 4*x-2*a==y:
        print('Yes')
        break
else:
    print('No')
X, Y = map(int, input().split())

bird_only = 2 * X
r = (Y-bird_only) / 2
if r <= X:
    print('Yes')
else:
    print('No')
import sys
input = sys.stdin.readline

# B - Crane and Turtle
x, y = map(int, input().split())

for crane in range(x + 1):
	turtle = x - crane
	
	if crane * 2 + turtle * 4 == y:
		print('YES')
		exit()

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

b = y // 2
a = y // 4


if y % 2 != 0:
    print("No")
else:
    if a <= x <= b:
        print("Yes")
    else:
        print("No")
X,Y=map(int,input().split())

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

if ((a+b) == X) and ((2*a+4*b) == Y):
    print('Yes')
elif ((a+b) not in X) and ((2*a+4*b) not in Y):
    print('No')
N, M = map(int,input().split())
crain = (4 * N - M) / 2
if crain.is_integer() and crain > 0:
  print("Yes")

else:
  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*(s) == m:
            a = a + 1
        else:
            a = a
if a > 0:
    print('Yes')
else:
    print("No")
n,m=map(int,input().split())

x=(4*n-m)/2
y=n-x
ans = x+y


if ans==n:
  print('Yes')
else:
  ('No')
i = list(map(int, input().split()))

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

if x < i[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")
# -*- coding: utf-8 -*-

X,Y = list(map(int, input().rstrip().split()))
#-----
crane = int( (4*X - Y) / 2 )
tortoise = int( (-2*X + Y) / 2 )

if (0 <= crane <= 100) and (0 <= tortoise <= 100):
    if crane == tortoise == 0:
        print("No")
    
    print("Yes")
else:
    print("No")
x, y = map(int, input().split())

low = y//4
high = y//2

if low <= x <= high:
    print("Yes")
else:
    print("No")
X,Y = map(int,input().split())

#2z + 4(X-z) = Y
#-2z = Y - 4X
z = 2*X - 0.5*Y

if(0 < z and z.is_integer()):
  print('Yes')
else:
  print('No')
X, Y = map(int, input().split())
ans = 0
for i in range(X):
    ans += 4
if ans >= Y:
    print('Yes')
else:
    print('No')
import numpy as np

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

cranes = np.arange(X+1) * 2
turtles = (np.arange(X+1)*4).reshape(-1,1)

total = cranes + turtles

if np.any(total == Y):
  print('Yes')
else:
  print('No')
X, Y = list(map(int, input().split()))
for i in range(1,X+1):
    if 2*i + 4*(X-i) == Y:
        print('Yes')
        exit()
print('No')
n, legs= map(int, input().split(" "))

x = (legs - 2*n)/2
y = (4*n - legs)/2

if x%1==0 and y%1==0 and x>0 and y>0:
  print('Yes')
else:
  print('No')