The number 40145 (forty thousand one hundred forty-five) is written in Roman numerals as follows: XLCXLV