The number 997865 (nine hundred ninety-seven thousand eight hundred sixty-five) is written in Roman numerals as follows: CMXCVIIDCCCLXV