Convert Roman numerals to decimal considering restrictions on Roman numerals.