
'''simple docstring'''





class     a :




				def __init__(				self						:					Dict   ):
										snake_case							:  List[str]			=     []
										snake_case							:  Any			=     0
										snake_case							:  Union[str, Any]			=     0




				def __str__(				self						:					Dict   ):
										snake_case							:  Optional[Any]			=     '''<''' + str(self.entries   )[1:-1] + '''>'''
										return printed




				def 						__snake_case				(				self						:					Optional[int],     SCREAMING_SNAKE_CASE_						:					Union[str, Any]   ):
										self.entries.append(SCREAMING_SNAKE_CASE_   )
										snake_case							:  int			=     self.length + 1




				def 						__snake_case				(				self						:					Dict   ):
										snake_case							:  Tuple			=     self.length - 1
										snake_case							:  Optional[int]			=     self.entries[self.front]
										# self.front-=1
										# self.entries = self.entries[self.front:]
										snake_case							:  List[Any]			=     self.entries[1:]
										return dequeued




				def 						__snake_case				(				self						:					Tuple,     SCREAMING_SNAKE_CASE_						:					Dict   ):
										for _ in range(SCREAMING_SNAKE_CASE_   ):
																self.put(self.get()   )




				def 						__snake_case				(				self						:					List[str]   ):
										return self.entries[0]




				def 						__snake_case				(				self						:					int   ):
										return self.length







__a			:	Optional[Any]							     =		[chr(i) for i in range(32, 1_26)]
__a			:	Dict							     =		list(range(len(alphabets)))
__a			:	List[Any]							     =		list(range(len(alphabets)))
__a			:	Tuple							     =		list(range(len(alphabets)))
__a			:	List[Any]							     =		list(reversed(range(len(alphabets))))
__a			:	List[Any]							     =		[]
__a			:	Optional[int]							     =		0




def  a_		(							)	->			Dict:

			'''simple docstring'''


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




def  a_		(							__snake_case					)	->			Any:

			'''simple docstring'''


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


if __name__ == "__main__":
				__a			:	Union[str, Any]							     =		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!"""
				)
