def subs(a: list) -> set: s = set() for x in a: t = s.copy() for y in s: t.add(x - y) t.add(y - x) t.add(x) s = t return s N, K = map(int, input().split()) A = list(map(int, input().split())) if K in A: print('Yes') exit() def solve(): a = A[:N//2] b = A[N//2:] xs = subs(a) ys = subs(b) print(f'{a=} {xs=}') print(f'{b=} {ys=}') if K in xs or K in ys: return True for x in xs: if x-K in ys or x+K in ys: return True return False def solve2(): xs = subs(A) return K in xs if solve2(): print('Yes') else: print('No')