local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end local n, m, s = io.read():match("(%d+) (%d+) (%d+)") n = tonumber(n) m = lltonumber(m) s = lltonumber(s) local a = 0LL for i = 1, n do a = a + io.read("*n") end if a < s then a, s = s, a end if (s - a) % m == 0LL then print("Yes") else print("No") end