import math a,b=map(int,input().split()) print(round(math.sqrt(a**2+b**2),2))