





import functools






def lowerCamelCase__   (							snake_case_     :  Tuple	,				snake_case_     :  Union[str, Any]	)				->    Optional[int]:

			# Validation
			if not isinstance(_UpperCAmelCase	,				_UpperCAmelCase	) or not all(isinstance(_UpperCAmelCase	,				_UpperCAmelCase	) for day in days	):
						raise ValueError('''The parameter days should be a list of integers'''	)

			if len(_UpperCAmelCase	) != 3 or not all(isinstance(_UpperCAmelCase	,				_UpperCAmelCase	) for cost in costs	):
						raise ValueError('''The parameter costs should be a list of three integers'''	)

			if len(_UpperCAmelCase	) == 0:
						return 0

			if min(_UpperCAmelCase	) <= 0:
						raise ValueError('''All days elements should be greater than 0'''	)

			if max(_UpperCAmelCase	) >= 366:
						raise ValueError('''All days elements should be less than 366'''	)

			__snake_case								=       set(_UpperCAmelCase	)

			@functools.cache
			def dynamic_programming(snake_case_     :  Dict	) -> int:
						if index > 365:
									return 0

						if index not in days_set:
									return dynamic_programming(index + 1	)

						return min(
						    costs[0] + dynamic_programming(index + 1	)	,				costs[1] + dynamic_programming(index + 7	)	,				costs[2] + dynamic_programming(index + 30	)	,				)

			return dynamic_programming(1	)


if __name__ == "__main__":
				import doctest

				doctest.testmod()








from pathlib import Path

import fire






def lowerCamelCase__   (							snake_case_     :  str	,				snake_case_     :  str	,				snake_case_     :  int	)				->    str:
   __snake_case								=       Path(snake_case_	)
   __snake_case								=       Path(snake_case_	)
   dest_dir.mkdir(exist_ok=snake_case_	)
   for path in src_dir.iterdir():
      __snake_case								=       [x.rstrip() for x in list(path.open().readlines()	)][:n]
      __snake_case								=       dest_dir.joinpath(path.name	)
      print(snake_case_	)
      dest_path.open('''w'''	).write('''\n'''.join(snake_case_	)	)


if __name__ == "__main__":
    fire.Fire(minify)

