The number 40345 (forty thousand three hundred forty-five) is written in Roman numerals as follows: XLCCCXLV