The number 20874 (twenty thousand eight hundred seventy-four) is written in Roman numerals as follows: XXDCCCLXXIV