The number 12791 (twelve thousand seven hundred ninety-one) is written in Roman numerals as follows: XIIDCCXCI