module Main open System let ps = Console.ReadLine().Split(' ') |> Array.map float let qs = Console.ReadLine().Split(' ') |> Array.map float Console.WriteLine( (abs(ps.[0] - qs.[0]) + abs(ps.[1] - qs.[1])) / 2.0)