



from argparse import ArgumentParser

from .env import EnvironmentCommand



def       lowercase       (   )  ->     Optional[Any]:
 _snake_case    :  Any					=					ArgumentParser("""Diffusers CLI tool"""				,       usage="""diffusers-cli <command> [<args>]"""				)
 _snake_case    :  Dict					=					parser.add_subparsers(help="""diffusers-cli command helpers"""				)

 # Register commands
 EnvironmentCommand.register_subcommand(SCREAMING_SNAKE_CASE__				)

 # Let's go
 _snake_case    :  List[str]					=					parser.parse_args()

 if not hasattr(SCREAMING_SNAKE_CASE__				,       """func"""				):
  parser.print_help()
  exit(1				)

 # Run
 _snake_case    :  Optional[int]					=					args.func(SCREAMING_SNAKE_CASE__				)
 service.run()


if __name__ == "__main__":
  main()





from math import ceil, sqrt



def       lowercase       (   SCREAMING_SNAKE_CASE__       :	int = 1_000_000				)  ->     int:
 _snake_case    :  Tuple					=					0

 for outer_width in range(3				,       (limit // 4) + 2				):
  if outer_width**2 > limit:
   _snake_case    :  int					=					max(ceil(sqrt(outer_width**2 - limit				)				)				,       1				)
  else:
   _snake_case    :  Any					=					1
  if (outer_width - hole_width_lower_bound) % 2:
   hole_width_lower_bound += 1

  answer += (outer_width - hole_width_lower_bound - 2) // 2 + 1

 return answer


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