import sys input=lambda: sys.stdin.readline().rstrip() a,b=map(int,input().split()) if a==b: print((a**2+b**2)**0.5) else: print(abs(a**2-b**2)**0.5)