a=gets.split.map{|e| e.to_f} t=(a[0]**2-a[1]**2).abs puts t==0?Math.hypot(a[0],a[1]):t**0.5