





from __future__ import annotations

from math import pow, sqrt
def      A__       (    SCREAMING_SNAKE_CASE_   :      float				,	SCREAMING_SNAKE_CASE_   :      float				,	SCREAMING_SNAKE_CASE_   :      float						)  ->  dict[str, float]:






   """simple docstring"""







   if (resistance, reactance, impedance).count(0						) != 1:
      raise ValueError('''One and only one argument must be 0'''						)
   if resistance == 0:
      return {"resistance": sqrt(pow(SCREAMING_SNAKE_CASE_				,	2						) - pow(SCREAMING_SNAKE_CASE_				,	2						)						)}
   elif reactance == 0:
      return {"reactance": sqrt(pow(SCREAMING_SNAKE_CASE_				,	2						) - pow(SCREAMING_SNAKE_CASE_				,	2						)						)}
   elif impedance == 0:
      return {"impedance": sqrt(pow(SCREAMING_SNAKE_CASE_				,	2						) + pow(SCREAMING_SNAKE_CASE_				,	2						)						)}
   else:
      raise ValueError('''Exactly one argument must be 0'''						)


if __name__ == "__main__":
   import doctest

   doctest.testmod()






UpperCAmelCase_           =	{
    "A": ".-", "B": "-...", "C": "-.-.", "D": "-..", "E": ".", "F": "..-.", "G": "--.",
    "H": "....", "I": "..", "J": ".---", "K": "-.-", "L": ".-..", "M": "--", "N": "-.",
    "O": "---", "P": ".--.", "Q": "--.-", "R": ".-.", "S": "...", "T": "-", "U": "..-",
    "V": "...-", "W": ".--", "X": "-..-", "Y": "-.--", "Z": "--..", "1": ".----",
    "2": "..---", "3": "...--", "4": "....-", "5": ".....", "6": "-....", "7": "--...",
    "8": "---..", "9": "----.", "0": "-----", "&": ".-...", "@": ".--.-.",
    ":": "---...", ",": "--..--", ".": ".-.-.-", "'": ".----.", "\"": ".-..-.",
    "?": "..--..", "/": "-..-.", "=": "-...-", "+": ".-.-.", "-": "-....-",
    "(": "-.--.", ")": "-.--.-", "!": "-.-.--", " ": "/"
}  # Exclamation mark is not in ITU-R recommendation
# fmt: on
UpperCAmelCase_           =	{value: key for key, value in MORSE_CODE_DICT.items()}
def      A__       (    SCREAMING_SNAKE_CASE_   :      str						)  ->  str:






   """simple docstring"""







   return " ".join(MORSE_CODE_DICT[char] for char in message.upper()						)
def      A__       (    SCREAMING_SNAKE_CASE_   :      str						)  ->  str:






   """simple docstring"""







   return "".join(REVERSE_DICT[char] for char in message.split()						)
def      A__       (    )  ->  None:






   """simple docstring"""







   _UpperCAmelCase           =   '''Morse code here!'''
   print(SCREAMING_SNAKE_CASE_						)
   _UpperCAmelCase           =   encrypt(SCREAMING_SNAKE_CASE_						)
   print(SCREAMING_SNAKE_CASE_						)
   _UpperCAmelCase           =   decrypt(SCREAMING_SNAKE_CASE_						)
   print(SCREAMING_SNAKE_CASE_						)


if __name__ == "__main__":
   main()