The number 35840 (thirty-five thousand eight hundred forty) is written in Roman numerals as follows: XXXVDCCCXL