The number 18771 (eighteen thousand seven hundred seventy-one) is written in Roman numerals as follows: XVIIIDCCLXXI