




"""simple docstring"""







def 							lowercase   (snake_case__				:	List[str] ,    snake_case__				:	Optional[int]	)       ->					int:


				'''simple docstring'''






				if n == 0:
								return 1

				elif n % 2 == 1:
								return binary_exponentiation(snake_case__ ,    n - 1	) * a

				else:
								lowerCAmelCase		=			binary_exponentiation(snake_case__ ,    n / 2	)
								return b * b


if __name__ == "__main__":
		try:
				a								=							int(input('Enter Base : ').strip())
				a								=							int(input('Enter Power : ').strip())
		except ValueError:
				print('Invalid literal for integer')

		a								=							binary_exponentiation(BASE, POWER)
		print(f"""{BASE}^({POWER}) : {RESULT}""")











"""simple docstring"""







def 							lowercase   (snake_case__				:	int	)       ->					int:


				'''simple docstring'''






				barcode //= 10  # exclude the last digit
				lowerCAmelCase		=			False
				lowerCAmelCase		=			0

				# extract and check each digit
				while barcode != 0:
								lowerCAmelCase		=			1 if checker else 3
								s += mult * (barcode % 10)
								barcode //= 10
								lowerCAmelCase		=			not checker

				return (10 - (s % 10)) % 10





def 							lowercase   (snake_case__				:	int	)       ->					bool:


				'''simple docstring'''






				return len(str(snake_case__	)	) == 13 and get_check_digit(snake_case__	) == barcode % 10





def 							lowercase   (snake_case__				:	str	)       ->					int:


				'''simple docstring'''






				if str(snake_case__	).isalpha():
								lowerCAmelCase		=			f'''Barcode \'{barcode}\' has alphabetic characters.'''
								raise ValueError(snake_case__	)
				elif int(snake_case__	) < 0:
								raise ValueError("""The entered barcode has a negative value. Try again."""	)
				else:
								return int(snake_case__	)


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		a								=							get_barcode(input('Barcode: ').strip())

		if is_valid(barcode):
				print(f"""'{barcode}' is a valid barcode.""")
		else:
				print(f"""'{barcode}' is NOT a valid barcode.""")





