P=list(map(int,input().split())) Q=list(map(int,input().split())) print((abs(Q[0]-P[0])+abs(Q[1]-P[1]))/2)