The number 12876 (twelve thousand eight hundred seventy-six) is written in Roman numerals as follows: XIIDCCCLXXVI