






lowercase  :							Dict			  =    [
    (10_00, '''M'''),
    (9_00, '''CM'''),
    (5_00, '''D'''),
    (4_00, '''CD'''),
    (1_00, '''C'''),
    (90, '''XC'''),
    (50, '''L'''),
    (40, '''XL'''),
    (10, '''X'''),
    (9, '''IX'''),
    (5, '''V'''),
    (4, '''IV'''),
    (1, '''I'''),
]

def      lowerCAmelCase__	(    _a       :			str    ):
		snake_case_				:							Tuple						 =       {"I": 1, "V": 5, "X": 10, "L": 50, "C": 1_00, "D": 5_00, "M": 10_00}
		snake_case_				:							Optional[int]						 =       0
		snake_case_				:							str						 =       0
		while place < len(_a    ):
				if (place + 1 < len(_a    )) and (vals[roman[place]] < vals[roman[place + 1]]):
						total += vals[roman[place + 1]] - vals[roman[place]]
						place += 2
				else:
						total += vals[roman[place]]
						place += 1
		return total

def      lowerCAmelCase__	(    _a       :			int    ):
		snake_case_				:							Dict						 =       []
		for arabic, roman in ROMAN:
				(snake_case_)				:							str						 =       divmod(_a  ,      _a    )
				result.append(roman * factor    )
				if number == 0:
						break
		return "".join(_a    )


if __name__ == "__main__":
		import doctest

		doctest.testmod()








def      lowerCAmelCase__	(    _a       :			int    ):
		if num < 0:
				return False

		snake_case_				:							int						 =       num
		snake_case_				:							int						 =       0
		while num > 0:
				snake_case_				:							Union[str, Any]						 =       rev_num * 10 + (num % 10)
				num //= 10

		return num_copy == rev_num


if __name__ == "__main__":
							import doctest

							doctest.testmod()
