import Foundation let n = readLine()!.split(separator: " ").map{Double($0)!} let (r,d) = (n[0],n[1]) print(sqrt(pow(d,2)-pow(r,2)))