local ffi = require 'ffi' local C = ffi.C ffi.cdef [[ int printf(const char *, ...); ]] C.printf("%lu %lu\n", (function (f, x) if x<1 or x>31 then return 0ULL,0ULL end return f(31,x),(2ULL^31-1)*f(30,x-1) end)(function (n, r) if n-r