The number 9866 (nine thousand eight hundred sixty-six) is written in Roman numerals as follows: IXDCCCLXVI