The number 40287 (forty thousand two hundred eighty-seven) is written in Roman numerals as follows: XLCCLXXXVII