r,d = map(float,input().split()) from math import sqrt print(sqrt(r ** 2 + d ** 2))