


'''simple docstring'''






from itertools import combinations_with_replacement






def 						_A					(lowerCAmelCase__	:int = 1_00		) ->	int:




     '''simple docstring'''



     _a         =				[*list(range(1					,    21		)		), 25]
     _a         =				[2 * x for x in range(1					,    21		)] + [50]
     _a         =				[3 * x for x in range(1					,    21		)]
     _a         =				singles + doubles + triples + [0]

     _a         =				0
     _a         =				42
     _a         =				42
     _a         =				42
     _a         =				42

     for double in doubles:
          for throwa, throwa in combinations_with_replacement(lowerCAmelCase__					,    2		):
               _a         =				double + throwa + throwa
               if checkout_total < limit:
                    num_checkouts += 1

     return num_checkouts


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





'''simple docstring'''






import os






def 						_A					() ->	int:




     '''simple docstring'''



     _a         =				os.path.dirname(os.path.realpath(lowerCAmelCase__		)		)
     _a         =				os.path.join(lowerCAmelCase__					,    'triangle.txt'		)

     with open(lowerCAmelCase__		) as in_file:
          _a         =				[[int(lowerCAmelCase__		) for i in line.split()] for line in in_file]

     while len(lowerCAmelCase__		) != 1:
          _a         =				triangle.pop()
          _a         =				triangle[-1]
          for j in range(len(lowerCAmelCase__		) - 1		):
               curr_row[j] += max(last_row[j]					,    last_row[j + 1]		)
     return triangle[0][0]


if __name__ == "__main__":
 print(solution())

