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