The number 19877 (nineteen thousand eight hundred seventy-seven) is written in Roman numerals as follows: XIXDCCCLXXVII