The number 297871 (two hundred ninety-seven thousand eight hundred seventy-one) is written in Roman numerals as follows: CCXCVIIDCCCLXXI