The number 39945 (thirty-nine thousand nine hundred forty-five) is written in Roman numerals as follows: XXXIXCMXLV