

__UpperCAmelCase     					=  [chr(i) for i in range(3_2, 1_2_6)]
__UpperCAmelCase     					=  list(range(len(alphabets)))
__UpperCAmelCase     					=  list(range(len(alphabets)))
__UpperCAmelCase     					=  list(range(len(alphabets)))
__UpperCAmelCase     					=  list(reversed(range(len(alphabets))))
__UpperCAmelCase     					=  []
__UpperCAmelCase     					=  __UpperCAmelCase     					=  __UpperCAmelCase     					=  0







def 						_snake_case		(     )							->   List[str]:

     """simple docstring"""







     global gear_one_pos
     global gear_two_pos
     global gear_three_pos
     _lowerCAmelCase :       Dict	   =     gear_one[0]
     gear_one.append(SCREAMING_SNAKE_CASE					)
     del gear_one[0]
     gear_one_pos += 1
     if gear_one_pos % int(len(SCREAMING_SNAKE_CASE					)					) == 0:
          _lowerCAmelCase :       List[str]	   =     gear_two[0]
          gear_two.append(SCREAMING_SNAKE_CASE					)
          del gear_two[0]
          gear_two_pos += 1
          if gear_two_pos % int(len(SCREAMING_SNAKE_CASE					)					) == 0:
               _lowerCAmelCase :       List[str]	   =     gear_three[0]
               gear_three.append(SCREAMING_SNAKE_CASE					)
               del gear_three[0]
               gear_three_pos += 1







def 						_snake_case		(     SCREAMING_SNAKE_CASE					)							->   Dict:

     """simple docstring"""







     _lowerCAmelCase :       Union[str, Any]	   =     alphabets.index(SCREAMING_SNAKE_CASE					)
     _lowerCAmelCase :       List[Any]	   =     gear_one[target]
     _lowerCAmelCase :       str	   =     gear_two[target]
     _lowerCAmelCase :       Optional[int]	   =     gear_three[target]
     _lowerCAmelCase :       int	   =     reflector[target]
     _lowerCAmelCase :       str	   =     gear_three.index(SCREAMING_SNAKE_CASE					)
     _lowerCAmelCase :       str	   =     gear_two.index(SCREAMING_SNAKE_CASE					)
     _lowerCAmelCase :       Union[str, Any]	   =     gear_one.index(SCREAMING_SNAKE_CASE					)
     code.append(alphabets[target]					)
     rotator()


if __name__ == "__main__":
  __UpperCAmelCase     					=  list(input('Type your message:\n'))
  while True:
    try:
      __UpperCAmelCase     					=  int(input('Please set token:(must be only digits)\n'))
      break
    except Exception as error:
      print(error)
  for _ in range(token):
    rotator()
  for j in decode:
    engine(j)
  print('\n' + ''.join(code))
  print(
      f'''\nYour Token is {token} please write it down.\nIf you want to decode '''
      'this message again you should input same digits as token!'
  )









def 						_snake_case		(     SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE					)							->   Optional[int]:

     """simple docstring"""







     if power < 0:
          return -1
     base %= mod
     _lowerCAmelCase :       Tuple	   =     1

     while power > 0:
          if power & 1:
               _lowerCAmelCase :       Optional[Any]	   =     (result * base) % mod
          _lowerCAmelCase :       int	   =     power >> 1
          _lowerCAmelCase :       Optional[int]	   =     (base * base) % mod

     return result







def 						_snake_case		(     )							->   Optional[int]:

     """simple docstring"""







     print(modular_exponential(3		,				200		,				13					)					)


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  main()






