The number 318876 (three hundred eighteen thousand eight hundred seventy-six) is written in Roman numerals as follows: CCCXVIIIDCCCLXXVI