The number 39317 (thirty-nine thousand three hundred seventeen) is written in Roman numerals as follows: XXXIXCCCXVII