The number 12387 (twelve thousand three hundred eighty-seven) is written in Roman numerals as follows: XIICCCLXXXVII