The number 30171 (thirty thousand one hundred seventy-one) is written in Roman numerals as follows: XXXCLXXI