"""simple docstring"""


UpperCAmelCase__  		=						[
    (1_0_0_0, """M"""),
    (9_0_0, """CM"""),
    (5_0_0, """D"""),
    (4_0_0, """CD"""),
    (1_0_0, """C"""),
    (9_0, """XC"""),
    (5_0, """L"""),
    (4_0, """XL"""),
    (1_0, """X"""),
    (9, """IX"""),
    (5, """V"""),
    (4, """IV"""),
    (1, """I"""),
]






def     __UpperCAmelCase					(			lowercase		):







  """simple docstring"""
  _UpperCAmelCase						 =      {"""I""": 1, """V""": 5, """X""": 10, """L""": 50, """C""": 1_00, """D""": 5_00, """M""": 10_00}
  _UpperCAmelCase						 =      0
  _UpperCAmelCase						 =      0
  while place < len(lowercase		):
    if (place + 1 < len(lowercase		)) 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     __UpperCAmelCase					(			lowercase		):







  """simple docstring"""
  _UpperCAmelCase						 =      []
  for arabic, roman in ROMAN:
    ((_UpperCAmelCase) ,				(_UpperCAmelCase))						 =      divmod(lowercase   ,lowercase		)
    result.append(roman * factor		)
    if number == 0:
      break
  return "".join(lowercase		)


if __name__ == "__main__":
    import doctest

    doctest.testmod()

"""simple docstring"""


from abc import ABC, abstractmethod
from argparse import ArgumentParser


class        a				(		lowerCAmelCase_   ):


    @staticmethod
    @abstractmethod
    def      lowerCAmelCase_  (					__lowerCAmelCase	:  ArgumentParser					):
      raise NotImplementedError()


    @abstractmethod
    def      lowerCAmelCase_  (					self	:  int					):
      raise NotImplementedError()
