The number 31777 (thirty-one thousand seven hundred seventy-seven) is written in Roman numerals as follows: XXXIDCCLXXVII