

"""simple docstring"""





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

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

def 						__SCREAMING_SNAKE_CASE						(   A_				):
	lowerCAmelCase__			:		Union[str, Any]						       =			alphabets.index(A_				)
	lowerCAmelCase__			:		Dict						       =			gear_one[target]
	lowerCAmelCase__			:		Optional[Any]						       =			gear_two[target]
	lowerCAmelCase__			:		Any						       =			gear_three[target]
	lowerCAmelCase__			:		str						       =			reflector[target]
	lowerCAmelCase__			:		Union[str, Any]						       =			gear_three.index(A_				)
	lowerCAmelCase__			:		Dict						       =			gear_two.index(A_				)
	lowerCAmelCase__			:		Optional[int]						       =			gear_one.index(A_				)
	code.append(alphabets[target]				)
	rotator()


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





def 						__SCREAMING_SNAKE_CASE						(   A_				):
	lowerCAmelCase__			:		List[Any]						       =			53_81
	for x in s:
		lowerCAmelCase__			:		Tuple						       =			((hash_value << 5) + hash_value) + ord(A_				)
	return hash_value & 0Xf_f_f_f_f_f_f_f




