The number 31850 (thirty-one thousand eight hundred fifty) is written in Roman numerals as follows: XXXIDCCCL