import sequtils,strutils var px,py,qx,qy : float (px,py) = stdin.readline.split.map(parsefloat) (qx,qy) = stdin.readline.split.map(parsefloat) px = abs(px - qx) py = abs(py - qy) echo (px + py) / 2