p1,p2=(int(i) for i in input().split()) q1,q2=(int(i) for i in input().split()) a=abs(p1-q1)+abs(p2-q2) print(a/2)