using static System.Math; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); Array.Sort(a); var ans = Min(a[2] - a[1], a[1] - a[0]); Console.WriteLine(ans); } }