ax,ay=map(int,input().split()) bx,by=map(int,input().split()) x=abs(ax-bx) y=abs(ay-by) print((x+y)/2)