from math import * a, b = map(int, input().split()) if a == b: print(sqrt(b ** 2 + a ** 2)) exit() if a > b: a, b = b, a print(sqrt(b ** 2 - a ** 2))