The number 165871 (one hundred sixty-five thousand eight hundred seventy-one) is written in Roman numerals as follows: CLXVDCCCLXXI