a,b=gets.split &:to_i p Math.sqrt((a*a-b*b).abs)