


"""simple docstring"""






def       A_   (   _lowerCAmelCase     :					list[int],     _lowerCAmelCase     :					int       ):






     """simple docstring"""

     _a    	=				len(_lowerCAmelCase       )
     _a    	=				[[False] * (required_sum + 1) for _ in range(arr_len + 1       )]

     # for each arr value, a sum of zero(0) can be formed by not taking any element
     # hence True/1
     for i in range(arr_len + 1       ):
          _a    	=				True

     # sum is not zero and set is empty then false
     for i in range(1,     required_sum + 1       ):
          _a    	=				False

     for i in range(1,     arr_len + 1       ):
          for j in range(1,     required_sum + 1       ):
               if arr[i - 1] > j:
                    _a    	=				subset[i - 1][j]
               if arr[i - 1] <= j:
                    _a    	=				subset[i - 1][j] or subset[i - 1][j - arr[i - 1]]

     return subset[arr_len][required_sum]


if __name__ == "__main__":
   import doctest

   doctest.testmod()



"""simple docstring"""






from pathlib import Path

import fire
def       A_   (   _lowerCAmelCase     :					str,     _lowerCAmelCase     :					str,     _lowerCAmelCase     :					int       ):






     """simple docstring"""

     _a    	=				Path(_lowerCAmelCase       )
     _a    	=				Path(_lowerCAmelCase       )
     dest_dir.mkdir(exist_ok=_lowerCAmelCase       )
     for path in src_dir.iterdir():
          _a    	=				[x.rstrip() for x in list(path.open().readlines()       )][:n]
          _a    	=				dest_dir.joinpath(path.name       )
          print(_lowerCAmelCase       )
          dest_path.open('''w'''       ).write('''\n'''.join(_lowerCAmelCase       )       )


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