The number 123871 (one hundred twenty-three thousand eight hundred seventy-one) is written in Roman numerals as follows: CXXIIIDCCCLXXI