



_snake_case		=  [
    (1000, "M"),
    (900, "CM"),
    (500, "D"),
    (400, "CD"),
    (100, "C"),
    (90, "XC"),
    (50, "L"),
    (40, "XL"),
    (10, "X"),
    (9, "IX"),
    (5, "V"),
    (4, "IV"),
    (1, "I"),
]






def 				A				(					_lowerCamelCase  ):





							'''simple docstring'''




							_lowerCAmelCase     :							Optional[int]    =    {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1_000}
							_lowerCAmelCase     :							Union[str, Any]    =    0
							_lowerCAmelCase     :							Optional[int]    =    0
							while place < len(_lowerCamelCase  ):
														if (place + 1 < len(_lowerCamelCase  )) 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 				A				(					_lowerCamelCase  ):





							'''simple docstring'''




							_lowerCAmelCase     :							str    =    []
							for arabic, roman in ROMAN:
														((_lowerCAmelCase)   ,    (_lowerCAmelCase))     :							List[str]    =    divmod(_lowerCamelCase				, _lowerCamelCase  )
														result.append(roman * factor  )
														if number == 0:
																					break
							return "".join(_lowerCamelCase  )


if __name__ == "__main__":
						import doctest

						doctest.testmod()


import os




def  __magic_name__ (   )			->   str:
				__lowerCamelCase    					=	os.path.join(os.path.dirname(__lowerCAmelCase							)		,  '''num.txt'''							)
				with open(__lowerCAmelCase							) as file_hand:
								return str(sum(int(__lowerCAmelCase							) for line in file_hand							)							)[:10]


if __name__ == "__main__":
					print(solution())



