import math Len = list(map(float, input().split())) LA_Len = math.sqrt(Len[1]**2 - Len[0]**2) print(LA_Len)