The number 12873 (twelve thousand eight hundred seventy-three) is written in Roman numerals as follows: XIIDCCCLXXIII