import math

a = int(input("Podaj a: "))
b = int(input("Podaj b: "))
c = a * a + b * b
wynik = math.sqrt(c)

print(wynik)