The number 164871 (one hundred sixty-four thousand eight hundred seventy-one) is written in Roman numerals as follows: CLXIVDCCCLXXI