The number 12187 (twelve thousand one hundred eighty-seven) is written in Roman numerals as follows: XIICLXXXVII