import math from decimal import * hen = list(map(decimal, raw_input().split())) hens = sorted(hen) mins = math.sqrt(hens[1]*hens[1] - hens[0]*hens[0]) print mins