The number 39940 (thirty-nine thousand nine hundred forty) is written in Roman numerals as follows: XXXIXCMXL