The number 12842 (twelve thousand eight hundred forty-two) is written in Roman numerals as follows: XIIDCCCXLII