The number 31277 (thirty-one thousand two hundred seventy-seven) is written in Roman numerals as follows: XXXICCLXXVII