






"""simple docstring"""

lowercase    			=       '''ABCDEFGHIJKLMNOPQRSTUVWXYZ'''






def _lowerCAmelCase	(  ):

						'''simple docstring'''






						__magic_name__            =     input("Enter message: "   )
						__magic_name__            =     input("Enter key [alphanumeric]: "   )
						__magic_name__            =     input("Encrypt/Decrypt [e/d]: "   )

						if mode.lower().startswith("e"   ):
												__magic_name__            =     "encrypt"
												__magic_name__            =     encrypt_message(__lowerCamelCase ,						__lowerCamelCase   )
						elif mode.lower().startswith("d"   ):
												__magic_name__            =     "decrypt"
												__magic_name__            =     decrypt_message(__lowerCamelCase ,						__lowerCamelCase   )

						print(f'''\n{mode.title()}ed message:'''   )
						print(__lowerCamelCase   )






def _lowerCAmelCase	(  __lowerCamelCase:str ,						__lowerCamelCase:str   ):

						'''simple docstring'''






						return translate_message(__lowerCamelCase ,						__lowerCamelCase ,						"encrypt"   )






def _lowerCAmelCase	(  __lowerCamelCase:str ,						__lowerCamelCase:str   ):

						'''simple docstring'''






						return translate_message(__lowerCamelCase ,						__lowerCamelCase ,						"decrypt"   )






def _lowerCAmelCase	(  __lowerCamelCase:str ,						__lowerCamelCase:str ,						__lowerCamelCase:str   ):

						'''simple docstring'''






						__magic_name__            =     []
						__magic_name__            =     0
						__magic_name__            =     key.upper()

						for symbol in message:
												__magic_name__            =     LETTERS.find(symbol.upper()   )
												if num != -1:
																		if mode == "encrypt":
																								num += LETTERS.find(key[key_index]   )
																		elif mode == "decrypt":
																								num -= LETTERS.find(key[key_index]   )

																		num %= len(__lowerCamelCase   )

																		if symbol.isupper():
																								translated.append(LETTERS[num]   )
																		elif symbol.islower():
																								translated.append(LETTERS[num].lower()   )

																		key_index += 1
																		if key_index == len(__lowerCamelCase   ):
																								__magic_name__            =     0
												else:
																		translated.append(__lowerCamelCase   )
						return "".join(__lowerCamelCase   )


if __name__ == "__main__":
			main()











"""simple docstring"""

def _lowerCAmelCase	(  __lowerCamelCase:int   ):

						'''simple docstring'''






						__magic_name__            =     n ** (1 / 3)
						return (val * val * val) == n


if __name__ == "__main__":
			print(perfect_cube(27))
			print(perfect_cube(4))



