The number 27997 (twenty-seven thousand nine hundred ninety-seven) is written in Roman numerals as follows: XXVIICMXCVII