




__a							     =					'ABCDEFGHIJKLMNOPQRSTUVWXYZ'







def lowerCamelCase__  (     ):

     '''simple docstring'''


     UpperCAmelCase_     :				str  =     input('''Enter message: ''' )
     UpperCAmelCase_     :				Optional[int]  =     input('''Enter key [alphanumeric]: ''' )
     UpperCAmelCase_     :				Tuple  =     input('''Encrypt/Decrypt [e/d]: ''' )

     if mode.lower().startswith('''e''' ):
          UpperCAmelCase_     :				Tuple  =     '''encrypt'''
          UpperCAmelCase_     :				List[Any]  =     encrypt_message(_lowercase					,		_lowercase )
     elif mode.lower().startswith('''d''' ):
          UpperCAmelCase_     :				List[Any]  =     '''decrypt'''
          UpperCAmelCase_     :				str  =     decrypt_message(_lowercase					,		_lowercase )

     print(f'''\n{mode.title()}ed message:''' )
     print(_lowercase )







def lowerCamelCase__  (     _lowercase					,		_lowercase ):

     '''simple docstring'''


     return translate_message(_lowercase					,		_lowercase					,		'''encrypt''' )







def lowerCamelCase__  (     _lowercase					,		_lowercase ):

     '''simple docstring'''


     return translate_message(_lowercase					,		_lowercase					,		'''decrypt''' )







def lowerCamelCase__  (     _lowercase					,		_lowercase					,		_lowercase ):

     '''simple docstring'''


     UpperCAmelCase_     :				str  =     []
     UpperCAmelCase_     :				Tuple  =     0
     UpperCAmelCase_     :				Optional[Any]  =     key.upper()

     for symbol in message:
          UpperCAmelCase_     :				Tuple  =     LETTERS.find(symbol.upper() )
          if num != -1:
               if mode == "encrypt":
                    num += LETTERS.find(key[key_index] )
               elif mode == "decrypt":
                    num -= LETTERS.find(key[key_index] )

               num %= len(_lowercase )

               if symbol.isupper():
                    translated.append(LETTERS[num] )
               elif symbol.islower():
                    translated.append(LETTERS[num].lower() )

               key_index += 1
               if key_index == len(_lowercase ):
                    UpperCAmelCase_     :				Any  =     0
          else:
               translated.append(_lowercase )
     return "".join(_lowercase )


if __name__ == "__main__":
     main()

"""simple docstring"""




def 							_lowerCamelCase			(			__a     ):
		if divisor % 5 == 0 or divisor % 2 == 0:
				return 0
		SCREAMING_SNAKE_CASE_    			=			1
		SCREAMING_SNAKE_CASE_    			=			1
		while repunit:
				SCREAMING_SNAKE_CASE_    			=			(10 * repunit + 1) % divisor
				repunit_index += 1
		return repunit_index



def 							_lowerCamelCase			(			__a = 1_000_000     ):
		SCREAMING_SNAKE_CASE_    			=			limit - 1
		if divisor % 2 == 0:
				divisor += 1
		while least_divisible_repunit(__a     ) <= limit:
				divisor += 2
		return divisor


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