



import math






def  UpperCAmelCase__    (    lowercase__						,       lowercase__   ) ->      Optional[Any]:
						if 0 not in (x, y):
												# We use the relation x^y = y*log10(x), where 10 is the base.
												return y * math.logaa(lowercase__   )
						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.
			UpperCamelCase__ =						"Enter the base and the power separated by a comma: "
			UpperCamelCase__ ,   UpperCamelCase__ =						map(int, input(prompt).split(","))
			UpperCamelCase__ ,   UpperCamelCase__ =						map(int, input(prompt).split(","))

			# We find the log of each number, using the function res(), which takes two
			# arguments.
			UpperCamelCase__ =						res(xa, ya)
			UpperCamelCase__ =						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")










UpperCamelCase__ =						{
    "joule": 1.0,
    "kilojoule": 10_00,
    "megajoule": 1_00_00_00,
    "gigajoule": 10_00_00_00_00,
    "wattsecond": 1.0,
    "watthour": 36_00,
    "kilowatthour": 3_60_00_00,
    "newtonmeter": 1.0,
    "calorie_nutr": 41_86.8,
    "kilocalorie_nutr": 4_18_68_00.00,
    "electronvolt": 1.6_0217_6634e-19,
    "britishthermalunit_it": 10_55.0_55_85,
    "footpound": 1.355_818,
}






def  UpperCAmelCase__    (    lowercase__						,       lowercase__						,       lowercase__   ) ->      float:
						if to_type not in ENERGY_CONVERSION or from_type not in ENERGY_CONVERSION:
												__lowercase					=				(
												    F"Incorrect 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"
												    F"Valid values are: {', '.join(lowercase__   )}"
												)
												raise ValueError(lowercase__   )
						return value * ENERGY_CONVERSION[from_type] / ENERGY_CONVERSION[to_type]


if __name__ == "__main__":
			import doctest

			doctest.testmod()





