The number 18671 (eighteen thousand six hundred seventy-one) is written in Roman numerals as follows: XVIIIDCLXXI