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