


'''simple docstring'''







a__    :   List[Any]								=			[chr(i) for i in range(3_2, 1_2_6)]
a__    :   Optional[int]								=			list(range(len(alphabets)))
a__    :   Optional[Any]								=			list(range(len(alphabets)))
a__    :   Any								=			list(range(len(alphabets)))
a__    :   int								=			list(reversed(range(len(alphabets))))
a__    :   Tuple								=			[]
a__    :   List[str]								=			0







def _UpperCamelCase			(	)				->						Dict:


      '''simple docstring'''



      global gear_one_pos
      global gear_two_pos
      global gear_three_pos
      UpperCamelCase__      =							gear_one[0]
      gear_one.append(__A       )
      del gear_one[0]
      gear_one_pos += 1
      if gear_one_pos % int(len(__A       )       ) == 0:
            UpperCamelCase__      =							gear_two[0]
            gear_two.append(__A       )
            del gear_two[0]
            gear_two_pos += 1
            if gear_two_pos % int(len(__A       )       ) == 0:
                  UpperCamelCase__      =							gear_three[0]
                  gear_three.append(__A       )
                  del gear_three[0]
                  gear_three_pos += 1







def _UpperCamelCase			(	__A       )				->						List[Any]:


      '''simple docstring'''



      UpperCamelCase__      =							alphabets.index(__A       )
      UpperCamelCase__      =							gear_one[target]
      UpperCamelCase__      =							gear_two[target]
      UpperCamelCase__      =							gear_three[target]
      UpperCamelCase__      =							reflector[target]
      UpperCamelCase__      =							gear_three.index(__A       )
      UpperCamelCase__      =							gear_two.index(__A       )
      UpperCamelCase__      =							gear_one.index(__A       )
      code.append(alphabets[target]       )
      rotator()


if __name__ == "__main__":
  a__    :   List[Any]								=			list(input('Type your message:\n'))
  while True:
    try:
      a__    :   int								=			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!'
  )









'''simple docstring'''







import itertools







def _UpperCamelCase			(	__A = 1000000       )				->						int:


      '''simple docstring'''



      UpperCamelCase__      =							[1]

      for i in itertools.count(len(__A       )       ):
            UpperCamelCase__      =							0
            for j in itertools.count(1       ):
                  UpperCamelCase__      =							-1 if j % 2 == 0 else +1
                  UpperCamelCase__      =							(j * j * 3 - j) // 2
                  if index > i:
                        break
                  item += partitions[i - index] * sign
                  item %= number
                  index += j
                  if index > i:
                        break
                  item += partitions[i - index] * sign
                  item %= number

            if item == 0:
                  return i
            partitions.append(__A       )

      return 0


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  print(F"""{solution() = }""")





