local n = io.read("*n") if(60 <= n) then print("000000000000") else local m = 1 for i = 2, n do m = (m * i) % 1000000000000 end print(m) end