local ffi = require 'ffi' local C = ffi.C ffi.cdef [[ long atol(const char *str); int printf(const char *fmt, ...); ]] C.printf("%ld\n", (function (f, s) return f(s) end)(function (s) return C.atol(s)*16LL/15LL end, io.stdin:read("*l")))