a,b,c,d=eval $<.read.split;p ((a-c).abs+(b-d).abs)/2.0