A, B = sorted(map(int, input().split())) print((B ** 2 - A ** 2) ** .5)