The number 838165 (eight hundred thirty-eight thousand one hundred sixty-five) is written in Roman numerals as follows: DCCCXXXVIIICLXV