The number 3187 (three thousand one hundred eighty-seven) is written in Roman numerals as follows: MMMCLXXXVII