The number 40161 (forty thousand one hundred sixty-one) is written in Roman numerals as follows: XLCLXI