The number 40850 (forty thousand eight hundred fifty) is written in Roman numerals as follows: XLDCCCL