The number 965317 (nine hundred sixty-five thousand three hundred seventeen) is written in Roman numerals as follows: CMLXVCCCXVII