The number 10842 (ten thousand eight hundred forty-two) is written in Roman numerals as follows: XDCCCXLII