# -*- coding: utf-8 -*- a,b = map(int, input().split()) if a < b: temp = a a = b b = temp x = pow(a**2-b**2, 0.5) print(x)