


import io
import json
import subprocess


__UpperCAmelCase			:			str			      =					[
    ["en", "ru"],
    ["ru", "en"],
    ["en", "de"],
    ["de", "en"],
]

__UpperCAmelCase			:			Dict			      =					8


def   a						(				SCREAMING_SNAKE_CASE_   :		int				,      SCREAMING_SNAKE_CASE_   :		str							):






       """simple docstring"""





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


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





def   a						(				SCREAMING_SNAKE_CASE_   :		int							):






       """simple docstring"""





       UpperCamelCase     :						Tuple 						=		[True for i in range(n + 1							)]
       UpperCamelCase     :						Tuple 						=		[i - 1 for i in range(n + 1							)]
       UpperCamelCase     :						Optional[Any] 						=		[]
       for i in range(2				,      n + 1							):
              if is_prime[i]:
                     primes.append(SCREAMING_SNAKE_CASE_							)
              for j in range(0				,      len(SCREAMING_SNAKE_CASE_							)							):
                     if i * primes[j] >= n:
                            break
                     UpperCamelCase     :						Any 						=		False

                     if i % primes[j] == 0:
                            UpperCamelCase     :						int 						=		totients[i] * primes[j]
                            break

                     UpperCamelCase     :						Dict 						=		totients[i] * (primes[j] - 1)

       return totients


if __name__ == "__main__":
  import doctest

  doctest.testmod()

