
import io
import json
import subprocess


lowerCamelCase_  :       List[Any]					      =     [
    ["""en""", """ru"""],
    ["""ru""", """en"""],
    ["""en""", """de"""],
    ["""de""", """en"""],
]

lowerCamelCase_  :       List[Any]					      =     8







def 				A__    (  lowerCamelCase   ,			lowerCamelCase  )     ->		List[Any]:
				UpperCamelCase_:							int		=  {}
				for src, tgt in pairs:
								UpperCamelCase_:							str		=  F'''{src}-{tgt}'''
								UpperCamelCase_:							Union[str, Any]		=  F'''sacrebleu -t wmt19 -l {pair} --echo src'''.split()
								UpperCamelCase_:							Optional[int]		=  subprocess.run(lowerCamelCase   ,			stdout=subprocess.PIPE  ).stdout.decode("""utf-8"""  ).splitlines()
								UpperCamelCase_:							Dict		=  F'''sacrebleu -t wmt19 -l {pair} --echo ref'''.split()
								UpperCamelCase_:							Dict		=  subprocess.run(lowerCamelCase   ,			stdout=subprocess.PIPE  ).stdout.decode("""utf-8"""  ).splitlines()
								UpperCamelCase_:							Any		=  {"""src""": src_lines[:n_objs], """tgt""": tgt_lines[:n_objs]}
				return text


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








def 				A__    (  lowerCamelCase  )     ->		Optional[Any]:
				UpperCamelCase_:							Optional[int]		=  len(lowerCamelCase  )
				for _ in range(
				    0   ,			int(((no_of_elements - 1) / 2) + 1  )  ):  # we don't need to traverse to end of list as
								for j in range(0   ,			no_of_elements - 1  ):
												if (
												    lst[j + 1] < lst[j]
												):  # applying bubble sort algorithm from left to right (or forwards)
																UpperCamelCase_:							str		=  lst[j + 1]
																UpperCamelCase_:							Tuple		=  lst[j]
																UpperCamelCase_:							str		=  temp
												if (
												    lst[no_of_elements - 1 - j] < lst[no_of_elements - 2 - j]
												):  # applying bubble sort algorithm from right to left (or backwards)
																UpperCamelCase_:							Union[str, Any]		=  lst[no_of_elements - 1 - j]
																UpperCamelCase_:							Dict		=  lst[no_of_elements - 2 - j]
																UpperCamelCase_:							List[Any]		=  temp
				return lst


if __name__ == "__main__":
							print("""enter the list to be sorted""")
							lowerCamelCase_  :       Union[str, Any]					      =     [int(x) for x in input().split()]  # inputing elements of the list in one line
							lowerCamelCase_  :       Union[str, Any]					      =     double_sort(lst)
							print("""the sorted list is""")
							print(sorted_lst)






