



class 				_snake_case			:




				def __init__(						self					:						str,					__lowercase					:						Dict,					__lowercase					:						Optional[int],					__lowercase					:						Union[str, Any]						):
							lowercase__					  =				name
							lowercase__					  =				value
							lowercase__					  =				weight




				def __repr__(						self					:						int						):
							return F'''{self.__class__.__name__}({self.name}, {self.value}, {self.weight})'''




				def 							A__      (						self					:						Optional[int]						):
							return self.value




				def 							A__      (						self					:						Dict						):
							return self.name




				def 							A__      (						self					:						Dict						):
							return self.weight




				def 							A__      (						self					:						str						):
							return self.value / self.weight



def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_						,  SCREAMING_SNAKE_CASE_						,  SCREAMING_SNAKE_CASE_  ):
			lowercase__					  =				[]
			for i in range(len(SCREAMING_SNAKE_CASE_  )  ):
						menu.append(Things(name[i]						,  value[i]						,  weight[i]  )  )
			return menu



def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_						,  SCREAMING_SNAKE_CASE_						,  SCREAMING_SNAKE_CASE_  ):
			lowercase__					  =				sorted(SCREAMING_SNAKE_CASE_						,  key=SCREAMING_SNAKE_CASE_						,  reverse=SCREAMING_SNAKE_CASE_  )
			lowercase__					  =				[]
			lowercase__  ,       lowercase__					  =				0.0, 0.0
			for i in range(len(SCREAMING_SNAKE_CASE_  )  ):
						if (total_cost + items_copy[i].get_weight()) <= max_cost:
									result.append(items_copy[i]  )
									total_cost += items_copy[i].get_weight()
									total_value += items_copy[i].get_value()
			return (result, total_value)



def __lowerCAmelCase (     ):
			pass


if __name__ == "__main__":
							import doctest

							doctest.testmod()









import math



def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_						,  SCREAMING_SNAKE_CASE_  ):
			if 0 not in (x, y):
						# We use the relation x^y = y*log10(x), where 10 is the base.
						return y * math.logaa(SCREAMING_SNAKE_CASE_  )
			else:
						if x == 0:  # 0 raised to any number is 0
									return 0
						elif y == 0:
									return 1  # any number raised to 0 is 1
			raise AssertionError("This should never happen"  )


if __name__ == "__main__":  # Main function
							# Read two numbers from input and typecast them to int using map function.
							# Here x is the base and y is the power.
							lowercase_								=     """Enter the base and the power separated by a comma: """
							lowercase_				,    lowercase_								=     map(int, input(prompt).split(""","""))
							lowercase_				,    lowercase_								=     map(int, input(prompt).split(""","""))

							# We find the log of each number, using the function res(), which takes two
							# arguments.
							lowercase_								=     res(xa, ya)
							lowercase_								=     res(xa, ya)

							# We check for the largest number
							if resa > resa:
														print("""Largest number is""", xa, """^""", ya)
							elif resa > resa:
														print("""Largest number is""", xa, """^""", ya)
							else:
														print("""Both are equal""")




