'''simple docstring'''




from math import sqrt




def 							lowerCamelCase	(      UpperCAmelCase__       :					int = 1000000 )			->      int:
							lowercase_					:			int										=       0
							lowercase_					:			int										=       0
							lowercase_					:			int

							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(UpperCAmelCase__      ,      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 							lowerCamelCase	(      UpperCAmelCase__       :					int      ,      UpperCAmelCase__       :					int )			->      bool:
							return numa ^ numa < 0


if __name__ == "__main__":
						import doctest

						doctest.testmod()





