import math a = input() a = a.split(" ") a = [int(i) for i in a] print(a) length = math.sqrt(abs(a[0]**2-a[1]**2)) print(length)