The number 18876 (eighteen thousand eight hundred seventy-six) is written in Roman numerals as follows: XVIIIDCCCLXXVI