s,i=abs,input a,b,c,d=map(int,(i()+' '+i()).split()) print((s(a-c)+s(b-d))/2)