The number 217874 (two hundred seventeen thousand eight hundred seventy-four) is written in Roman numerals as follows: CCXVIIDCCCLXXIV