
'''simple docstring'''

def __A  (    ):

     for a in range(300       ):
          for b in range(a + 1 ,       400       ):
               for c in range(b + 1 ,       500       ):
                    if (a + b + c) == 1000 and (a**2) + (b**2) == (c**2):
                         return a * b * c

     return -1







def __A  (    ):

     for a in range(300       ):
          for b in range(400       ):
               _UpperCAmelCase					:  Tuple         =    1000 - a - b
               if a < b < c and (a**2) + (b**2) == (c**2):
                    return a * b * c

     return -1







def __A  (    ):
     import timeit

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


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




'''simple docstring'''

import io
import json
import subprocess


lowerCAmelCase_			:			Tuple			   =     [
    ['''en''', '''ru'''],
    ['''ru''', '''en'''],
    ['''en''', '''de'''],
    ['''de''', '''en'''],
]

lowerCAmelCase_			:			str			   =     8







def __A  (    lowerCAmelCase_ ,       lowerCAmelCase_       ):
     _UpperCAmelCase					:  Union[str, Any]         =    {}
     for src, tgt in pairs:
          _UpperCAmelCase					:  Union[str, Any]         =    f"{src}-{tgt}"
          _UpperCAmelCase					:  List[Any]         =    f"sacrebleu -t wmt19 -l {pair} --echo src".split()
          _UpperCAmelCase					:  List[str]         =    subprocess.run(lowerCAmelCase_ ,       stdout=subprocess.PIPE       ).stdout.decode("""utf-8"""       ).splitlines()
          _UpperCAmelCase					:  str         =    f"sacrebleu -t wmt19 -l {pair} --echo ref".split()
          _UpperCAmelCase					:  List[Any]         =    subprocess.run(lowerCAmelCase_ ,       stdout=subprocess.PIPE       ).stdout.decode("""utf-8"""       ).splitlines()
          _UpperCAmelCase					:  int         =    {"""src""": src_lines[:n_objs], """tgt""": tgt_lines[:n_objs]}
     return text


lowerCAmelCase_			:			Optional[int]			   =     get_all_data(pairs, n_objs)
lowerCAmelCase_			:			str			   =     '''./fsmt_val_data.json'''
with io.open(filename, '''w''', encoding='''utf-8''') as f:
   lowerCAmelCase_			:			Tuple			   =     json.dump(text, f, indent=2, ensure_ascii=False)


