import sys input=lambda: sys.stdin.readline().rstrip() r,d=map(int,input().split()) print((d**2+r**2)**0.5)