The number 39854 (thirty-nine thousand eight hundred fifty-four) is written in Roman numerals as follows: XXXIXDCCCLIV