The number 4187 (four thousand one hundred eighty-seven) is written in Roman numerals as follows: IVCLXXXVII