




"""simple docstring"""




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







def       __UpperCAmelCase      (				):
			global gear_one_pos
			global gear_two_pos
			global gear_three_pos
			__lowercase	:       List[str]				=   gear_one[0]
			gear_one.append(__UpperCamelCase					)
			del gear_one[0]
			gear_one_pos += 1
			if gear_one_pos % int(len(__UpperCamelCase					)					) == 0:
						__lowercase	:       Optional[Any]				=   gear_two[0]
						gear_two.append(__UpperCamelCase					)
						del gear_two[0]
						gear_two_pos += 1
						if gear_two_pos % int(len(__UpperCamelCase					)					) == 0:
									__lowercase	:       Optional[Any]				=   gear_three[0]
									gear_three.append(__UpperCamelCase					)
									del gear_three[0]
									gear_three_pos += 1







def       __UpperCAmelCase      (				__UpperCamelCase					):
			__lowercase	:       Optional[int]				=   alphabets.index(__UpperCamelCase					)
			__lowercase	:       Union[str, Any]				=   gear_one[target]
			__lowercase	:       Dict				=   gear_two[target]
			__lowercase	:       Tuple				=   gear_three[target]
			__lowercase	:       Any				=   reflector[target]
			__lowercase	:       Any				=   gear_three.index(__UpperCamelCase					)
			__lowercase	:       Optional[Any]				=   gear_two.index(__UpperCamelCase					)
			__lowercase	:       Tuple				=   gear_one.index(__UpperCamelCase					)
			code.append(alphabets[target]					)
			rotator()


if __name__ == "__main__":
			a_            =   list(input('Type your message:\n'))
			while True:
						try:
									a_            =   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"""




def       __UpperCAmelCase      (				__UpperCamelCase					):
			if len(__UpperCamelCase					) <= 1:
						return data
			else:
						return [
						    *quick_sort([e for e in data[1:] if e <= data[0]]					),
						    data[0],
						    *quick_sort([e for e in data[1:] if e > data[0]]					),
						]


if __name__ == "__main__":
			import doctest

			doctest.testmod()



