using System;
public class Program
{
public static void Main()
int[] str = new int[6];
for (int i = 0; i < str.Length; i++)
menu();
str[i] = Convert.ToInt32(Console.ReadLine());
}
Array.Sort(str);
Console.WriteLine(str[5]-str[0]);
static void menu()
Console.WriteLine("Input: ");