


def       _a	(					SCREAMING_SNAKE_CASE						:					str     ,			SCREAMING_SNAKE_CASE						:					str  ):







 """simple docstring"""



 if not isinstance(SCREAMING_SNAKE_CASE     ,			SCREAMING_SNAKE_CASE  ):
  raise TypeError('''plaintext must be a string'''  )
 if not isinstance(SCREAMING_SNAKE_CASE     ,			SCREAMING_SNAKE_CASE  ):
  raise TypeError('''key must be a string'''  )

 if not plaintext:
  raise ValueError('''plaintext is empty'''  )
 if not key:
  raise ValueError('''key is empty'''  )

 key += plaintext
 UpperCamelCase__       :     Optional[Any] 							= plaintext.lower()
 UpperCamelCase__       :     str 							= key.lower()
 UpperCamelCase__       :     Union[str, Any] 							= 0
 UpperCamelCase__       :     int 							= 0
 UpperCamelCase__       :     List[str] 							= ''''''
 while plaintext_iterator < len(SCREAMING_SNAKE_CASE  ):
  if (
      ord(plaintext[plaintext_iterator]  ) < 97
      or ord(plaintext[plaintext_iterator]  ) > 122
  ):
   ciphertext += plaintext[plaintext_iterator]
   plaintext_iterator += 1
  elif ord(key[key_iterator]  ) < 97 or ord(key[key_iterator]  ) > 122:
   key_iterator += 1
  else:
   ciphertext += chr(
       (
           (ord(plaintext[plaintext_iterator]  ) - 97 + ord(key[key_iterator]  ))
           - 97
       )
       % 26
       + 97  )
   key_iterator += 1
   plaintext_iterator += 1
 return ciphertext

def       _a	(					SCREAMING_SNAKE_CASE						:					str     ,			SCREAMING_SNAKE_CASE						:					str  ):







 """simple docstring"""



 if not isinstance(SCREAMING_SNAKE_CASE     ,			SCREAMING_SNAKE_CASE  ):
  raise TypeError('''ciphertext must be a string'''  )
 if not isinstance(SCREAMING_SNAKE_CASE     ,			SCREAMING_SNAKE_CASE  ):
  raise TypeError('''key must be a string'''  )

 if not ciphertext:
  raise ValueError('''ciphertext is empty'''  )
 if not key:
  raise ValueError('''key is empty'''  )

 UpperCamelCase__       :     Union[str, Any] 							= key.lower()
 UpperCamelCase__       :     Tuple 							= 0
 UpperCamelCase__       :     List[str] 							= 0
 UpperCamelCase__       :     Any 							= ''''''
 while ciphertext_iterator < len(SCREAMING_SNAKE_CASE  ):
  if (
      ord(ciphertext[ciphertext_iterator]  ) < 97
      or ord(ciphertext[ciphertext_iterator]  ) > 122
  ):
   plaintext += ciphertext[ciphertext_iterator]
  else:
   plaintext += chr(
       (ord(ciphertext[ciphertext_iterator]  ) - ord(key[key_iterator]  )) % 26
       + 97  )
   key += chr(
       (ord(ciphertext[ciphertext_iterator]  ) - ord(key[key_iterator]  )) % 26
       + 97  )
   key_iterator += 1
  ciphertext_iterator += 1
 return plaintext


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       __UpperCamelCase							:							Optional[int]    							=					int(input("Type 1 to encrypt or 2 to decrypt:"))
       if operation == 1:
              __UpperCamelCase							:							Tuple    							=					input("Typeplaintext to be encrypted:\n")
              __UpperCamelCase							:							str    							=					input("Type the key:\n")
              print(encrypt(plaintext, key))
       elif operation == 2:
              __UpperCamelCase							:							Union[str, Any]    							=					input("Type the ciphertext to be decrypted:\n")
              __UpperCamelCase							:							str    							=					input("Type the key:\n")
              print(decrypt(ciphertext, key))
       decrypt("jsqqs avvwo", "coffee")






import numpy as np

def       _a	(					SCREAMING_SNAKE_CASE						:					Tuple  ):







 """simple docstring"""



 UpperCamelCase__       :     str 							= np.exp(SCREAMING_SNAKE_CASE  )

 # Add up the all the exponentials
 UpperCamelCase__       :     Optional[int] 							= np.sum(SCREAMING_SNAKE_CASE  )

 # Divide every exponent by the sum of all exponents
 UpperCamelCase__       :     Optional[Any] 							= exponent_vector / sum_of_exponents

 return softmax_vector


if __name__ == "__main__":
       print(softmax((0,)))


