public static void Main()
static void Main(string[] args)
var x1 = double.Parse(Console.ReadLine());
var y1 = double.Parse(Console.ReadLine());
var x2 = double.Parse(Console.ReadLine());
var y2 = double.Parse(Console.ReadLine());
var a = Math.Max(x1, x2) - Math.Min(x1, x2);
var b = Math. Max(y1, y2) - Math.Min(y1, y2);
var perimetar = 2 * (a + b);
Console.WriteLine(perimetar);