The number 12872 (twelve thousand eight hundred seventy-two) is written in Roman numerals as follows: XIIDCCCLXXII