The number 39171 (thirty-nine thousand one hundred seventy-one) is written in Roman numerals as follows: XXXIXCLXXI