P =raw_input() Px,Py =P.split(' ') Q =raw_input() Qx,Qy =Q.split(' ') print (abs(int(Qx)-int(Px))+abs(int(Qy)-int(Py)))/2.0