The number 9874 (nine thousand eight hundred seventy-four) is written in Roman numerals as follows: IXDCCCLXXIV