The number 39947 (thirty-nine thousand nine hundred forty-seven) is written in Roman numerals as follows: XXXIXCMXLVII