The number 39504 (thirty-nine thousand five hundred four) is written in Roman numerals as follows: XXXIXDIV