The number 87845 (eighty-seven thousand eight hundred forty-five) is written in Roman numerals as follows: LXXXVIIDCCCXLV