
"""simple docstring"""






from math import sqrt




def __magic_name__	(				_lowerCamelCase:		int = 1_000_000			)					->						int:

	'''simple docstring'''




	lowerCAmelCase												=  0
	lowerCAmelCase												=  0
	lowerCAmelCase												=  42

	while num_cuboids <= limit:
		max_cuboid_size += 1
		for sum_shortest_sides in range(2,					2 * max_cuboid_size + 1			):
			if sqrt(sum_shortest_sides**2 + max_cuboid_size**2			).is_integer():
				num_cuboids += (
				    min(_lowerCamelCase,					sum_shortest_sides // 2			)
				    - max(1,					sum_shortest_sides - max_cuboid_size			)
				    + 1
				)

	return max_cuboid_size


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




"""simple docstring"""






def __magic_name__	(				_lowerCamelCase:		Tuple,					_lowerCamelCase:		Any			)					->						Optional[Any]:

	'''simple docstring'''




	lowerCAmelCase												=  [1]
	for i in range(2,					_lowerCamelCase			):
		factorials.append(factorials[-1] * i			)
	assert 0 <= k < factorials[-1] * n, "k out of bounds"

	lowerCAmelCase												=  []
	lowerCAmelCase												=  list(range(_lowerCamelCase			)			)

	# Find permutation
	while factorials:
		lowerCAmelCase												=  factorials.pop()
		lowerCAmelCase							,       lowerCAmelCase												=  divmod(_lowerCamelCase,					_lowerCamelCase			)
		permutation.append(elements[number]			)
		elements.remove(elements[number]			)
	permutation.append(elements[0]			)

	return permutation


if __name__ == "__main__":
					import doctest

					doctest.testmod()


