The number 12874 (twelve thousand eight hundred seventy-four) is written in Roman numerals as follows: XIIDCCCLXXIV