The number 31664 (thirty-one thousand six hundred sixty-four) is written in Roman numerals as follows: XXXIDCLXIV