local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end n = io.read("*n", "*l") local a = 0LL for i = 1, n do a = a + lltonumber(io.read()) end a = tostring(a):gsub("LL", "") print(a)