






import os
from collections.abc import Iterator






def 	UpperCamelCase	(							snake_case__  : str = "."	):




     '''simple docstring'''






     for dir_path, dir_names, filenames in os.walk(snake_case__	):
          __snake_case      :int 							=    [d for d in dir_names if d != """scripts""" and d[0] not in """._"""]
          for filename in filenames:
               if filename == "__init__.py":
                    continue
               if os.path.splitext(snake_case__	)[1] in (".py", ".ipynb"):
                    yield os.path.join(snake_case__						,snake_case__	).lstrip("""./"""	)






def 	UpperCamelCase	(							snake_case__  : List[Any]	):




     '''simple docstring'''






     return f'''{i * '  '}*''' if i else "\n##"






def 	UpperCamelCase	(							snake_case__  : str						,snake_case__  : str	):




     '''simple docstring'''






     __snake_case      :Optional[int] 							=    old_path.split(os.sep	)
     for i, new_part in enumerate(new_path.split(os.sep	)	):
          if (i + 1 > len(snake_case__	) or old_parts[i] != new_part) and new_part:
               print(f'''{md_prefix(snake_case__	)} {new_part.replace('_'						,' '	).title()}'''	)
     return new_path






def 	UpperCamelCase	(							snake_case__  : str = "."	):




     '''simple docstring'''






     __snake_case      :Any 							=    """"""
     for filepath in sorted(good_file_paths(snake_case__	)	):
          __snake_case							,			__snake_case      :Any 							=    os.path.split(snake_case__	)
          if filepath != old_path:
               __snake_case      :int 							=    print_path(snake_case__						,snake_case__	)
          __snake_case      :Tuple 							=    (filepath.count(os.sep	) + 1) if filepath else 0
          __snake_case      :int 							=    f'''{filepath}/{filename}'''.replace(""" """						,"""%20"""	)
          __snake_case      :Optional[int] 							=    os.path.splitext(filename.replace("""_"""						,""" """	).title()	)[0]
          print(f'''{md_prefix(snake_case__	)} [{filename}]({url})'''	)


if __name__ == "__main__":
     print_directory_md(""".""")










def 	UpperCamelCase	(							snake_case__  : int	):




     '''simple docstring'''






     __snake_case      :List[Any] 							=    0
     while num > 0:
          digit_sum += num % 10
          num //= 10
     return digit_sum






def 	UpperCamelCase	(							snake_case__  : int = 100	):




     '''simple docstring'''






     __snake_case      :Tuple 							=    1
     __snake_case      :Dict 							=    2

     for i in range(2						,max_n + 1	):
          __snake_case      :Optional[int] 							=    pre_numerator
          __snake_case      :List[Any] 							=    2 * i // 3 if i % 3 == 0 else 1
          __snake_case      :Dict 							=    cur_numerator
          __snake_case      :Optional[Any] 							=    e_cont * pre_numerator + temp

     return sum_digits(snake_case__	)


if __name__ == "__main__":
     print(f'''{solution() = }''')


