l = sorted(map(int, input().split())) print((l[1]**2 - l[0]**2)**0.5)