The number 40508 (forty thousand five hundred eight) is written in Roman numerals as follows: XLDVIII