A=list(map(float,input().split())) B=list(map(float,input().split())) print((abs(A[0]-B[0])+abs(A[1]-B[1]))/2)