'''simple docstring'''


from itertools import combinations, product


def    _lowerCamelCase       ( lowerCamelCase_   :				int      ,	lowerCamelCase_   :				int      ,	lowerCamelCase_   :				int      ,	lowerCamelCase_   :				int  ):



     """simple docstring"""





     if xa == ya == 0 or xa == ya == 0:
          return False
     UpperCAmelCase_				:  Union[str, Any]  = xa * xa + ya * ya
     UpperCAmelCase_				:  str  = xa * xa + ya * ya
     UpperCAmelCase_				:  str  = (xa - xa) * (xa - xa) + (ya - ya) * (ya - ya)
     return (
         a_square + b_square == c_square
         or a_square + c_square == b_square
         or b_square + c_square == a_square
     )


def    _lowerCamelCase       ( lowerCamelCase_   :				int = 50  ):



     """simple docstring"""





     return sum(
         1
         for pta, pta in combinations(product(range(limit + 1  )      ,	repeat=2  )      ,	2  )
         if is_right(*lowerCamelCase_      ,	*lowerCamelCase_  )  )


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







'''simple docstring'''


import io
import json
import subprocess


snake_case__	:     Any      =    [
    ['''en''', '''ru'''],
    ['''ru''', '''en'''],
    ['''en''', '''de'''],
    ['''de''', '''en'''],
]

snake_case__	:     Tuple      =    8


def    _lowerCamelCase       ( lowerCamelCase_   :				Tuple      ,	lowerCamelCase_   :				Union[str, Any]  ):



     """simple docstring"""





     UpperCAmelCase_				:  List[Any]  = {}
     for src, tgt in pairs:
          UpperCAmelCase_				:  str  = F'''{src}-{tgt}'''
          UpperCAmelCase_				:  List[str]  = F'''sacrebleu -t wmt19 -l {pair} --echo src'''.split()
          UpperCAmelCase_				:  Any  = subprocess.run(lowerCamelCase_      ,	stdout=subprocess.PIPE  ).stdout.decode('utf-8'  ).splitlines()
          UpperCAmelCase_				:  Any  = F'''sacrebleu -t wmt19 -l {pair} --echo ref'''.split()
          UpperCAmelCase_				:  List[str]  = subprocess.run(lowerCamelCase_      ,	stdout=subprocess.PIPE  ).stdout.decode('utf-8'  ).splitlines()
          UpperCAmelCase_				:  str  = {'src': src_lines[:n_objs], 'tgt': tgt_lines[:n_objs]}
     return text


snake_case__	:     Union[str, Any]      =    get_all_data(pairs, n_objs)
snake_case__	:     Dict      =    '''./fsmt_val_data.json'''
with io.open(filename, '''w''', encoding='''utf-8''') as f:
 snake_case__	:     List[str]      =    json.dump(text, f, indent=2, ensure_ascii=False)






