The number 31495 (thirty-one thousand four hundred ninety-five) is written in Roman numerals as follows: XXXICDXCV