"""
###방법1
a = 3
b = 5
hypotenuse = a**2+b**2
print(hypotenuse)

"""
###방법2
a = int(input("1st Leg's length?: "))
b = int(input("2nd Leg's length?: "))
c = a**2 + b**2
print ("hypotenuse is : %s" % c)