from math import * a, b = map(float, input().split()) print("{:.2f}".format(sqrt(a**2+b**2)))