from math import sqrt a=int(input()) b=int(input()) c=sqrt(a**2+b**2) print(c)