
'''simple docstring'''





def snake_case_    (				):







  for a in range(3_0_0		):
    for b in range(a + 1      ,					4_0_0		):
      for c in range(b + 1      ,					5_0_0		):
        if (a + b + c) == 1_0_0_0 and (a**2) + (b**2) == (c**2):
          return a * b * c

  return -1







def snake_case_    (				):







  for a in range(3_0_0		):
    for b in range(4_0_0		):
      UpperCAmelCase__			:				Dict												=       1_0_0_0 - a - b
      if a < b < c and (a**2) + (b**2) == (c**2):
        return a * b * c

  return -1







def snake_case_    (				):
  import timeit

  print(
      timeit.timeit("solution()"      ,					setup="from __main__ import solution"      ,					number=1_0_0_0		)		)
  print(
      timeit.timeit(
          "solution_fast()"      ,					setup="from __main__ import solution_fast"      ,					number=1_0_0_0		)		)


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





'''simple docstring'''





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


SCREAMING_SNAKE_CASE    =					{
    """configuration_donut_swin""": ["""DONUT_SWIN_PRETRAINED_CONFIG_ARCHIVE_MAP""", """DonutSwinConfig"""],
    """processing_donut""": ["""DonutProcessor"""],
}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      SCREAMING_SNAKE_CASE    =					[
          """DONUT_SWIN_PRETRAINED_MODEL_ARCHIVE_LIST""",
          """DonutSwinModel""",
          """DonutSwinPreTrainedModel""",
      ]

try:
      if not is_vision_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      SCREAMING_SNAKE_CASE    =					["""DonutFeatureExtractor"""]
      SCREAMING_SNAKE_CASE    =					["""DonutImageProcessor"""]


if TYPE_CHECKING:
      from .configuration_donut_swin import DONUT_SWIN_PRETRAINED_CONFIG_ARCHIVE_MAP, DonutSwinConfig
      from .processing_donut import DonutProcessor

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_donut_swin import (
                DONUT_SWIN_PRETRAINED_MODEL_ARCHIVE_LIST,
                DonutSwinModel,
                DonutSwinPreTrainedModel,
            )

      try:
            if not is_vision_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .feature_extraction_donut import DonutFeatureExtractor
            from .image_processing_donut import DonutImageProcessor

else:
      import sys

      SCREAMING_SNAKE_CASE    =					_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)



