The number 840371 (eight hundred forty thousand three hundred seventy-one) is written in Roman numerals as follows: DCCCXLCCCLXXI