The number 31077 (thirty-one thousand seventy-seven) is written in Roman numerals as follows: XXXILXXVII