The number 39964 (thirty-nine thousand nine hundred sixty-four) is written in Roman numerals as follows: XXXIXCMLXIV