The number 31165 (thirty-one thousand one hundred sixty-five) is written in Roman numerals as follows: XXXICLXV