import math, strscans let (_, _, _, c, d, e, f) = stdin.readLine.scanTuple "$f $f $f $f $f $f" r = sqrt (c / 2)^2 + (d / 2)^2 - e + f echo r