The number 27845 (twenty-seven thousand eight hundred forty-five) is written in Roman numerals as follows: XXVIIDCCCXLV