





from math import sqrt



def        _a						(    UpperCAmelCase = 1000000     )				->				Optional[int]:







   """simple docstring"""
   lowerCamelCase__   :						int					   =							0
   lowerCamelCase__   :						int					   =							0
   lowerCamelCase__   :						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(__snake_case			,  sum_shortest_sides // 2     )
                - max(1			,  sum_shortest_sides - max_cuboid_size     )
                + 1
            )

   return max_cuboid_size


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











def      lowercase__      (     __snake_case    :							int  ):


					'''simple docstring'''


					UpperCAmelCase_    :      list[list[int]]            =						[[0 for _ in range(__snake_case  )] for _ in range(m + 1  )]
					for i in range(m + 1  ):
										UpperCAmelCase_    :      Optional[Any]            =						1

					for n in range(m + 1  ):
										for k in range(1     ,       __snake_case  ):
															memo[n][k] += memo[n][k - 1]
															if n - k > 0:
																				memo[n][k] += memo[n - k - 1][k]

					return memo[m][m - 1]


if __name__ == "__main__":
		import sys

		if len(sys.argv) == 1:
				try:
						__UpperCAmelCase								=						int(input('Enter a number: ').strip())
						print(partition(n))
				except ValueError:
						print('Please enter a number.')
		else:
				try:
						__UpperCAmelCase								=						int(sys.argv[1])
						print(partition(n))
				except ValueError:
						print('Please pass a number.')






