local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] function tollnumber(str) return C.atoll(str) end local n = tollnumber(io.read()) local MOD = 1000000007LL local ans = (function () return tostring(n % MOD):gsub("LL", "") end)() print(ans)