a = gets.chomp.split.map(&:to_i) b = gets.chomp.split.map(&:to_i) x = a[0].abs + b[0].abs y = a[1].abs + b[1].abs t = (x + y) / 2.to_f p t