a,b,c,d=gets(p).split.map(&:to_i) p ((a-c).abs+(b-d).abs)/2.0