Problem:
 Score : 200 points    Problem Statement There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.      Constraints  1 \leq X \leq 100  1 \leq Y \leq 100  All values in input are integers.         Input Input is given from Standard Input in the following format:  X  Y       Output If there is a combination of numbers of cranes and turtles in which the statement is correct, print Yes ; otherwise, print No .        Sample Input 1 3 8      Sample Output 1 Yes  The statement "there are 3 animals in total in the garden, and they have 8 legs in total" is correct if there are two cranes and one turtle. Thus, there is a combination of numbers of cranes and turtles in which the statement is correct.       Sample Input 2 2 100      Sample Output 2 No  There is no combination of numbers of cranes and turtles in which this statement is correct.       Sample Input 3 1 2      Sample Output 3 Yes  We also consider the case in which there are only cranes or only turtles.

Solution (Python):

[X,Y] = list(map(int,input().split()))

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

if flag==0:
    print('No')
else:
    print('Yes')

Solution (Python):
x,y = map(int,input().split())

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

print("No")

Solution (Python):
x, y = map(int, input().split())

if y % 2 != 0:
    print('No')
elif y > 4 * x:
    print('No')
elif y < 2 * x:
    print('No')
else:
    print('Yes')

Solution (Python):
def resolve():
    X,Y = map(int,input().split())
    if X*2 <= Y and Y <= X*4 and Y % 2 == 0:
        print("Yes")
    else:
        print("No")
resolve()

Solution (Python):
from typing import Dict, List, Optional, Tuple, Union  


def main(X, Y):
    ans = False
    for a in range(X + 1):
        if 2 * a + 4 * (X - a) == Y:
            ans = True
            break
    print(["No", "Yes"][ans])


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

Solution (Python):
x,y=map(int, input().split()) 
c=0
for i in range(int(y/4)+1):
    if 4*i+2*(x-i)==y:
        print("Yes")
        c=1
        break
if c==0:
    print("No")

Solution (Python):
x,y=[int(_) for _ in input().split()]
ans="No"

if y%2==0 and x*2<=y<=x*4:
    ans="Yes"

print(ans)

Solution (Python):
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")

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(X: int, Y: int):
    if Y % 2 == 0 and Y / 2 - X >= 0 and 2 * X - Y / 2 >= 0:
        print(YES)
    else:
        print(NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  
    Y = int(next(tokens))  
    solve(X, Y)

if __name__ == '__main__':
    main()

Solution (Python):
X, Y = map(int, input().split())

a = (4*X-Y)

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

Solution (Python):
X, Y = map(int, input().split())
for i in range(100):
    for j in range(100):
        if i * 2 + j * 4 == Y and i + j == X:
            print('Yes')
            exit()
print('No')

Solution (Python):
x, y = map(int, input().split())
z1 = y - 2 * x
z2 = 4 * x - y
if (z1 < 0 or z2 < 0 or z1 % 2 != 0):
  print('No')
else:
  print('Yes')

Solution (Python):
X, Y = map(int, input().split())

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

Solution (Python):
def main():
    X, Y = map(int, input().split())
    for i in range(X+1):
        if 2*i + 4*(X-i) == Y:
            print("Yes")
            exit()
    print("No")

if __name__ == "__main__":
    main()

Solution (Python):
X,Y = map(int,input().split())
tsuru = 0
for i in range(X+1):
    if 2*i + 4*(X-i) == Y:
        print("Yes")
        exit()
print("No")

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

Solution (Python):
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')

Solution (Python):
x, y = map(int, input().split())

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

print("No")

Solution (Python):
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')

Solution (Python):
def resolve():
    x,y = map(int, input().split())
    if 4*x<y:
        print("No")
    elif 2*x>y:
        print("No")
    elif (4*x-y)%2!=0:
        print("No")
    else:
        print("Yes")
resolve()

Solution (Python):
x,y=map(int,input().split())
flg=False
for i in range(x+1):
    if 2*i+4*(x-i)==y:
        flg=True
if flg:
    print("Yes")
else:
    print("No")

Solution (Python):
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")

Solution (Python):
x,y = map(int,input().split())
ans = "No"
for i in range(x+1):
    if 2*i + 4*(x-i) == y:
        ans = "Yes"

print(ans)

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

Solution (Python):
x,y=map(int,input().split())


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

Solution (Python):
x,y=map(int,input().split())
for i in range(x+1):
    if 2*i+4*(x-i)==y:
        print("Yes")
        quit()
print("No")

Solution (Python):
x, y = map(int, input().split())
kame = (y - 2 * x) // 2
turu = x - kame
if kame < 0 or turu < 0:
    print("No")
else:
    if turu * 2 + kame * 4 == y:
        print("Yes")
    else:
        print("No")

Solution (Python):
x,y = [int(i) for i in input().split()]
if y%2 == 1:
    print("No")
elif y < 2*x or y > 4*x:
    print("No")
else:
    b = int((y - 2*x)/2)
    a = x - b
    if a >= 0 and b >= 0:
        print("Yes")
    else:
        print("No")

Solution (Python):
import sys


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

for t in range(X+1):
    k = X - t
    if t * 2 + k * 4 == Y:
        print('Yes')
        sys.exit()

print('No')

Solution (Python):
def main(X, Y):
    cand = Y // 4
    for i in range(cand, -1, -1):
        if i * 4 + (X - i) * 2 == Y:
            print('Yes')
            exit()
    else:
        print('No')
if __name__ == '__main__':
    X, Y = list(map(int, input().split()))
    main(X, Y)

Solution (Python):
import sys
x, y = map(int, input().split(" "))

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

print("No")

Solution (Python):
X,Y = map(int, input().split())

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

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

Solution (Python):
import sys

if __name__ == "__main__":
    X, Y = [int(x) for x in input().split(" ")]
    
    for i in range(0, X + 1):
        if i * 2 + (X - i) * 4 == Y:
            print("Yes")
            sys.exit(0)
    print("No")

Solution (Python):
import sys
from math import factorial
from collections import Counter
from fractions import Fraction
import heapq, bisect, fractions
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7

x, y = MAP()
if y%2 ==1:
    print('No')
    sys.exit()
a = 2*x-(y//2)
b = -x + (y//2)
if a >=0 and b>=0:
    print('Yes')
else:
    print('No')

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

Solution (Python):
x,y=map(int,input().split())
a=1
b=1
for i in range(101):
    for j in range(101):
        if i+j==x:
            if 2*i+4*j==y:
                print("Yes")
                exit()
print("No")

Solution (Python):
x, y = map(int, input().split())

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

print(ans)

Solution (Python):
def main():

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

    b = y-2*x
    if b<0:
        print("No")
        return
    if b%2==1:
        print("No")
        return
    b //= 2

    if x-b<0:
        print("No")
        return
    print("Yes")
    

if __name__ == "__main__":
    main()

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

Solution (Python):
mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

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


if __name__ == '__main__':
    main()

Solution (Python):
x, y=map(int, input().split())
cnt=0
for i in range(x+1):
  if i*2+(x-i)*4==y:
    print("Yes")
    exit()
print("No")

Solution (Python):
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')

Solution (Python):
def solve():
    for a in range(X+1):
        if 2 * a + 4 * (X - a) == Y:
            print('Yes')
            return
    print('No')
if __name__ == "__main__":
    X, Y = map(int, input().split())
    solve()

Solution (Python):
x, y = [int(i) for i in input().split()]
if y % 2 == 0:
    if x*2 <= y <= x*4:
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

Solution (Python):
import sys
X,Y = map(int,input().split())
for i in range(1001):
    for j in range(101):
        if (i*2+j*4) == Y and i+j == X:
            print("Yes")
            sys.exit()
print("No")

Solution (Python):
x, y = [int(s) for s in input().split()]
ans = "No"
for i in range(x + 1):
    temp = 2 * i + 4 * (x - i)
    if temp == y:
        ans = "Yes"
print(ans)

Solution (Python):
import sys
input = sys.stdin.readline

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


if __name__ == "__main__":
    slove()

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

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

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

Solution (Python):
import math
import fractions
import collections
import itertools
X,Y=map(int,input().split())
kame=(Y-2*X)/2
tsuru=X-kame
if (kame>=0)and(kame.is_integer()==True)and(tsuru>=0):
    print("Yes")
else:
    print("No")

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

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

Solution (Python):


def ans(X, Y):
    TT = Y - 2*X
    if TT < 0:
        return "No"
    if TT % 2 != 0:
        return "No"
    T = TT // 2
    C = X - T
    if C < 0:
        return "No"
    return "Yes"
    
X, Y = input().split(' ')
X = int(X)
Y = int(Y)

print(ans(X, Y))

Solution (Python):
[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')

Solution (Python):
import sys

X, Y = map(int, sys.stdin.readline().strip().split())

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

Solution (Python):
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')

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

if y >= 2*x and y <= 4*x and y%2 == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
X, Y = map(int, input().split())

for i in range(X+1):
    turu = i
    kame = X - i

    if turu * 2 + kame * 4 == Y:
        print('Yes')
        exit()

print('No')

Solution (Python):
X, Y = map(int, input().split())

k = (Y-2*X)/2
t = X - k
if k >= 0 and t >= 0 and k == int(k) and t == int(t):
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)
INF = float('inf')

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

for turu in range(0, X+1):
    kame = X - turu

    ashi = turu * 2 + kame * 4
    if ashi == Y:
        print('Yes')
        quit()
print('No')

Solution (Python):




import sys
input = sys.stdin.readline



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

    res = 'No'

    for turu in range(X+1):
        kame = X - turu
        test = turu * 2 + kame * 4
        if test == Y:
            res = 'Yes'
            break

    print(res)



main()

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

Solution (Python):
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")

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

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

Solution (Python):
x, y = map( int, input().split() )

if y < 2 * x or 4 * x < y or y % 2 == 1:
    print( "No" )
else:
    print( "Yes" )

Solution (Python):
X, Y = map(int, input().split())
res = 0
for x in range(101):
    for y in range(101):
        if x + y == X and 2*x + 4*y == Y:
            print("Yes")
            exit()
print("No")

Solution (Python):
import sys
from collections import deque
import copy
def main():
    x, y = map(int, input().split())
    count = 2 * x
    if count == y:
        print('Yes')
        sys.exit()
    for i in range(x):
        count += 2
        if count == y:
            print('Yes')
            sys.exit()
    print('No')



if __name__ == '__main__':
    main()

Solution (Python):
x, y = map(int, input().split())
for a in range(100):
    for b in range(100):
        if a + b == x and 2 * a + 4 * b == y:
            print('Yes')
            exit()
print('No')

Solution (Python):
from sys import stdin, stdout
import heapq
import cProfile
from collections import Counter, defaultdict, deque
from functools import reduce
import math


def get_int():
    return int(stdin.readline().strip())


def get_tuple():
    return map(int, stdin.readline().split())


def get_list():
    return list(map(int, stdin.readline().split()))

x,y = get_tuple()
if y%2!=0: print("No")
elif x*2<=y<=x*4: print("Yes")
else: print("No")

Solution (Python):
X,Y=map(int,input().strip().split())

hit=False
for n in range(X+1):
    if 2*n+4*(X-n)==Y:
        hit=True
        break

if hit==True:
    print("Yes")
else:
    print("No")

Solution (Python):



import array
from bisect import *
from collections import *
import fractions
import heapq
from itertools import *
import math
import random
import re
import string
import sys

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

def solve(X, Y):
    tmp = Y - 2 * X
    if tmp % 2:
        return False
    b = (Y - 2 * X) // 2

    tmp = 4 * X - Y
    if tmp % 2:
        return False
    a = (4 * X - Y) // 2

    if a >= 0 and b >= 0:
        return True
    else:
        return False

if solve(X, Y):
    print("Yes")
else:
    print("No")

Solution (Python):
[x,y]=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)

Solution (Python):
import sys
X, Y = map(int, input().split())

for i in range(0,X+1):
    tmp = 2*i+4*(X-i)
    if tmp == Y:
        print("Yes")
        sys.exit(0)
print("No")

Solution (Python):
import sys
X, Y = map(int, input().split())

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

if Y < X * 2:
    print('No')
    sys.exit()
elif Y > X * 4:
    print('No')
    sys.exit()
    
print('Yes')

Solution (Python):
x, y = map(int, input().split())
ans = "No"
for i in range(101):
    for j in range(101):
        if i + j == x and 2*i + 4*j == y:
            ans = "Yes"
            break

print(ans)

Solution (Python):
import sys
X, Y = map(int, sys.stdin.readline().rstrip().split())
a = (4 * X - Y) / 2
b = (Y - 2 * X) / 2
if a.is_integer() and b.is_integer() and a >= 0 and b >= 0:
    print("Yes")
else:
    print("No")

Solution (Python):
X, Y = list(map(int, input().split()))

ans = "No";

for i in range(0, X+1):
  a = i * 2
  b = (X - i) * 4

  if((a + b) == Y):
    ans = "Yes"
    break

print(ans);

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

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

Solution (Python):
from sys import stdin, setrecursionlimit
input = stdin.buffer.readline
setrecursionlimit(10 ** 7)

from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
from collections import deque, defaultdict, Counter
from itertools import combinations, permutations, combinations_with_replacement
from itertools import accumulate
from math import ceil, sqrt, pi, radians, sin, cos

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


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

a, b = 4 * X - Y, Y - 2 * X

if a >= 0 and b >= 0 and a % 2 == 0 and b % 2 == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
x, y = map(int, input().split())
s = 0
flag = False

for i in range(x+1):
    s = 2 * i + 4 * (x - i)
    if s == y:
        flag = True
        break

print("Yes" if flag == True else "No")

Solution (Python):
X, Y = map(int, input().split())
flag = False

for i in range(X + 1):
    if 2 * i + 4 * (X - i) == Y:
        flag = True
        break

if flag:
    print('Yes')
else:
    print('No')

Solution (Python):
import math

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

for i in range(0, 101):
    for j in range(0, 101):
        s = i + j
        a = i * 2 + j * 4
        if s == x and y == a:
            print("Yes")
            exit()

print("No")

Solution (Python):
X,Y=map(int, input().split())

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

Solution (Python):
X,Y=map(int,input().split())

P=4*X-Y
Q=-2*X+Y
if (P%2==0) and (P>=0) and (Q%2==0) and (Q>=0):
    print("Yes")
else:
    print("No")

Solution (Python):
X, Y = map(int, input().split())

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

Solution (Python):
X, Y = map(int, input().split())













if ((Y%2)==0) & (Y<=X*4) & (Y>=X*2):
    print('Yes')
else:
    print('No')

Solution (Python):
from sys import stdin, setrecursionlimit


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


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 8)
ini = lambda: int(sys.stdin.readline())
inm = lambda: map(int, sys.stdin.readline().split())
inl = lambda: list(inm())
ins = lambda: sys.stdin.readline().rstrip()


x, y = inm()


def solve():
    if 4 * x - y < 0:
        return False
    if (4 * x - y) % 2 == 1:
        return False

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


print("Yes" if solve() else "No")

Solution (Python):
x, y = map(int, input().split())

for tsuru in range(x + 1):
    kame = x - tsuru
    if tsuru * 2 + kame * 4 == y:
        print('Yes')
        break
    elif tsuru == x:
        print('No')

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

print('No')

Solution (Python):
x,y=map(int,input().split())

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

Solution (Python):
a, b = map(int, input().split())

for i in range(101):
    for j in range(101):
        if i + j == a:
            if i * 2 + j * 4 == b:
                print("Yes")
                exit()

print("No")

Solution (Python):
import sys











stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)
MIN = -10 ** 9
MOD = 10 ** 9 + 7
INF = float("inf")
IINF = 10 ** 18

def main():
    
    x,y = map(int, stdin.readline().rstrip().split())
    
    
    
    
    
    for b in range(x+1):
        a = x - b
        if 4 * b + 2*a == y:
            print("Yes")
            exit()
    print("No")

main()

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

Solution (Python):
X, Y = map(int,input().split())

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

if (t % 1 == 0) and (k % 1 == 0) and (t >= 0 and k >= 0):
  print('Yes')
else:
  print('No')

Solution (Python):
def main():
    X,Y = map(int, input().split())
    
    for a in range(X+1):
        b = X-a
        if Y==(2*a+4*b):
            print('Yes')
            return
    print('No')

main()

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

Solution (Python):
X, Y = map(int, input().split())

if  Y % 2 != 0 or (Y // 2) < X or 2 * X < (Y // 2):
    print('No')
else:
    print('Yes')

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

Solution (Python):
x,y = map(int,input().split())

def main():
    for i in range(x):
        if(2*i + 4*(x-i) == y or 2*(x-i) + 4*i == y):
            print("Yes")
            return
    print("No")
    return

if __name__ == "__main__":
    main()

Solution (Python):


import sys
input=sys.stdin.readline

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

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

Solution (Python):
import sys
import numpy as np
import random
from decimal import Decimal
import itertools
import re
import bisect
from collections import deque, Counter
from functools import lru_cache

sys.setrecursionlimit(10**9)
INF = 10**13
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
def SERIES(n): return np.fromstring(sys.stdin.buffer.read(), dtype=np.int32, sep=' ')
def GRID(h,w): return np.fromstring(sys.stdin.buffer.read(), dtype=np.int32, sep=' ').reshape(h,-1)[:,:w]
def GRIDfromString(h,w): return np.frombuffer(sys.stdin.buffer.read(), 'S1').reshape(h,-1)[:,:w]
MOD = 1000000007

def main():
	x, y = LI()
	for turtle in range(x+1):
		turu = x - turtle
		if 4 * turtle + 2 * turu == y:
			print('Yes')
			break
	else:
		print('No')


if __name__ == '__main__':
    main()

Solution (Python):
x,y = map(int,input().split())
p = x * 2
if p == y:
    print('Yes')
elif p > y:
    print('No')
else:
    for i in range(x+1)[1:]:
        p += 2
        if p == y:
            print('Yes')
            break
        elif p > y:
            print('No')
            break

if y > p:
    print('No')

Solution (Python):
X,Y = map(int, input().split())

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

Solution (Python):
X,Y = map(int,input().split())

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

print("No")

Solution (Python):

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

ans = "No"

if y%2==0 and x<=y//2 and y//2<=x*2:
  ans = "Yes"


print(ans)

Solution (Python):
def resolve():
    X, Y = [int(i) for i in input().split()]
    for i in range(0, X + 1):
        for j in range(0, X + 1):
            if i + j != X:
                continue
            if 2 * i + 4 * j == Y:
                print("Yes")
                return
    print("No")


resolve()

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()

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

    if y / x > 4:
        print('No')
    elif y % 2 != 0:
        print('No')
    elif y / x < 2:
        print('No')
    else:
        print('Yes')

if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin
from copy import deepcopy
from functools import reduce
from fractions import gcd
import math
import itertools
from collections import Counter
from itertools import chain  
from heapq import heappush, heappop
import bisect


"""
N = int(input())
A, B = map(int,input().split())
A = list(map(int,input().split())) 
A = [int(input()) for _ in range(N)] 
lst = [list(map(int,input().split())) for i in range(M)] 
"""


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

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

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

Solution (Python):
x , y = map(int, input().split())

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

Solution (Python):
X,Y = map(int,input().split())

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

Solution (Python):
import sys
X, Y = map(int,input().split())
kame = 4
turu = 2

for i in range(0,X+1):
  nkame = i
  nturu = X-i
  ashi = nkame*kame + nturu*turu
  if ashi == Y:
    print("Yes")
    sys.exit()
print("No")

Solution (Python):
X, Y = list(map(int, input().split()))
b = (Y-2*X)/2
a = X-b
if a*b>=0 and int(a) == a and int(b)==b:
    print('Yes')
else:
    print('No')

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

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

    tsuru = 0
    kame = 0

    for i in range(X+1):
        tsuru = X - i
        kame = i
        if tsuru*2 + kame*4 == Y:
            print("Yes")
            return

    print("No")



if __name__ == '__main__':
    main()

Solution (Python):
h,l = map(int,input().split(' '))
if l >= h*2 and l <= h*4 and l % 2 == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
X, Y = map(int, input().split())

if (Y - 2*X) % 2 == 0 and X- (Y-2*X)/2 >= 0 and Y - 2*X >= 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
X, Y = map(int, input().split())

for i in range(0, X+1):
    j = X - i
    if 2*i + 4*j == Y:
        print('Yes')
        break
else:
    print('No')

Solution (Python):


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

Solution (Python):
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")

Solution (Python):

import sys
input = sys.stdin.readline
ipnl = lambda n: [int(input()) for _ in range(n)]
inp = lambda :int(input())
ip = lambda :[int(w) for w in input().split()]

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

Solution (Python):

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

ans = False
for i in range(x*2,x*4+1,2):
    if i == y:
        ans = True
        break


print('Yes' if ans else 'No')

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

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

Solution (Python):
x,y=map(int,input().split())
if y < x*2 or x*4 < y:
    print('No')
else:
    if (x*4-y) % 2 == 0:
        print('Yes')
    else:
        print('No')

Solution (Python):
x,y = [int(i) for i in input().split()]
for i in range(x+1) :
    z = 2*i + 4*(x-i)
    if z == y :
        print('Yes')
        exit()
print('No')

Solution (Python):
x, y = list(map(int, input().split()))
for i in range(1000):
    for j in range(1000):
        if i+j == x and 2*i+4*j == y:
            print('Yes')
            exit()
else:
    print('No')

Solution (Python):
x,y = map(int,input().split())

if y%2==0 and 2*x-y//2>=0 and y//2-x>=0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
X, Y = [int(x) for x in input().split()]
if Y % 2 != 0:
    print('No')
else:
    if 2 * X <= Y and 4 * X >= Y:
        print('Yes')
    else:
        print('No')

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

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

Solution (Python):
x, y = map(int, input().split())

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

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

X, Y = mapint()
if X*4-Y>=0 and X*2-Y<=0 and (X*4-Y)%2==0:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
readline = sys.stdin.readline

def solve():
    X, Y = map(int, readline().split())

    a = Y - X * 2

    if a >= 0 and a % 2 == 0 and a // 2 <= X:
        print('Yes')
    else:
        print('No')

solve()