using System; namespace yoru { class Program { static void Main(string[] args) { string[] inputString = Console.ReadLine().Split(' '); Int64 A = Int64.Parse(inputString[0]); Int64 B = Int64.Parse(inputString[1]); Int64 C = Int64.Parse(inputString[2]); Int64 diff1 = (A > B) ? (A - B) : -(A - B); Int64 diff2 = (B > C) ? (B - C) : -(B - C); Int64 diff3 = (C > A) ? (C - A) : -(C - A); Int64 diffMin = Math.Min(diff1, Math.Min(diff2, diff3)); Console.WriteLine(diffMin.ToString()); return; } } }