local mfl, mce = math.floor, math.ceil local n, m, l = io.read("*n", "*n", "*n") local dp1, dp2 = {}, {} local lim = 1000 for i = 1, lim do dp1[i] = false end dp1[l] = true for i = 1, n do local src = i % 2 == 1 and dp1 or dp2 local dst = i % 2 == 1 and dp2 or dp1 for j = 1, lim do dst[j] = src[j] end local ai = io.read("*n") for j = 1, lim do if src[j] then local d = mfl((ai + j) / 2) dst[d] = true end end end local tbl = n % 2 == 1 and dp2 or dp1 print(tbl[m] and "Yes" or "No")