a_		       =   [
    (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    __lowerCAmelCase   (    A_ :			str       )     ->	Dict:
  __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(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       )     ->	Dict:
  __UpperCAmelCase         =							[]
  for arabic, roman in ROMAN:
    ((__UpperCAmelCase)     ,		(__UpperCAmelCase))         =							divmod(a__    ,						a__       )
    result.append(roman * factor       )
    if number == 0:
      break
  return "".join(a__       )


if __name__ == "__main__":
       import doctest

       doctest.testmod()










# this script reports modified .py files under the desired list of top-level sub-dirs passed as a list of arguments, e.g.:
#   python ./utils/get_modified_files.py utils src tests examples
#
# it uses git to find the forking point and which files were modified - i.e. files not under git won't be considered
# since the output of this script is fed into Makefile commands it doesn't print a newline after the results

import re
import subprocess
import sys


UpperCamelCase__           =			subprocess.check_output("git merge-base main HEAD".split()).decode("utf-8")
UpperCamelCase__           =			subprocess.check_output(f"""git diff --name-only {fork_point_sha}""".split()).decode("utf-8").split()

UpperCamelCase__           =			"|".join(sys.argv[1:])
UpperCamelCase__           =			re.compile(rf"""^({joined_dirs}).*?\.py$""")

UpperCamelCase__           =			[x for x in modified_files if regex.match(x)]
print(" ".join(relevant_modified_files), end="")




