


'''simple docstring'''







A   :  List[Any]       		=				[chr(i) for i in range(32, 126)]
A   :  Union[str, Any]       		=				list(range(len(alphabets)))
A   :  Tuple       		=				list(range(len(alphabets)))
A   :  List[Any]       		=				list(range(len(alphabets)))
A   :  Optional[int]       		=				list(reversed(range(len(alphabets))))
A   :  Dict       		=				[]
A   :  str       		=				0






def    lowerCAmelCase__ (       ):
       global gear_one_pos
       global gear_two_pos
       global gear_three_pos
       _A  :			Tuple											=      gear_one[0]
       gear_one.append(lowerCamelCase     )
       del gear_one[0]
       gear_one_pos += 1
       if gear_one_pos % int(len(lowerCamelCase     )     ) == 0:
              _A  :			Dict											=      gear_two[0]
              gear_two.append(lowerCamelCase     )
              del gear_two[0]
              gear_two_pos += 1
              if gear_two_pos % int(len(lowerCamelCase     )     ) == 0:
                     _A  :			Optional[int]											=      gear_three[0]
                     gear_three.append(lowerCamelCase     )
                     del gear_three[0]
                     gear_three_pos += 1






def    lowerCAmelCase__ (       lowerCamelCase  :    Any     ):
       _A  :			List[str]											=      alphabets.index(lowerCamelCase     )
       _A  :			List[str]											=      gear_one[target]
       _A  :			Tuple											=      gear_two[target]
       _A  :			List[str]											=      gear_three[target]
       _A  :			int											=      reflector[target]
       _A  :			Any											=      gear_three.index(lowerCamelCase     )
       _A  :			Any											=      gear_two.index(lowerCamelCase     )
       _A  :			List[Any]											=      gear_one.index(lowerCamelCase     )
       code.append(alphabets[target]     )
       rotator()


if __name__ == "__main__":
   A   :  Dict       		=				list(input('''Type your message:\n'''))
   while True:
      try:
         A   :  Optional[Any]       		=				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    lowerCAmelCase__ (       lowerCamelCase  :    int = 1000000     ):
       _A  :			str											=      [1]

       for i in itertools.count(len(lowerCamelCase     )     ):
              _A  :			Optional[Any]											=      0
              for j in itertools.count(1     ):
                     _A  :			int											=      -1 if j % 2 == 0 else +1
                     _A  :			Optional[Any]											=      (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(lowerCamelCase     )

       return 0


if __name__ == "__main__":
   import doctest

   doctest.testmod()

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






