The number 2787 (two thousand seven hundred eighty-seven) is written in Roman numerals as follows: MMDCCLXXXVII