The number 40818 (forty thousand eight hundred eighteen) is written in Roman numerals as follows: XLDCCCXVIII