import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();

		int max = a;
		int min = a;

		if(max < b)
		{
			max = b;
		}
		if(min > b)
		{
			min = b;
		}
		if(max < c)
		{
			max = c;
		}
		if(min > c)
		{
			min = c;
		}

		System.out.println(max - min);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();

		int max = a;
		int min = a;

		if(max < b)
		{
			max = b;
		}
		if(min > b)
		{
			min = b;
		}
		if(max < c)
		{
			max = c;
		}
		if(min > c)
		{
			min = c;
		}

		System.out.println(max - min);

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();

		int max = a;
		int min = a;

		if(max < b)
		{
			max = b;
		}
		if(min > b)
		{
			min = b;
		}
		if(max < c)
		{
			max = c;
		}
		if(min > c)
		{
			min = c;
		}

		System.out.println(max - min);

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();

		int max = a;
		int min = a;

		if(max < b)
		{
			max = b;
		}
		if(min > b)
		{
			min = b;
		}
		if(max < c)
		{
			max = c;
		}
		if(min > c)
		{
			min = c;
		}

		System.out.println(max - min);

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int c = stdIn.nextInt(); c stdIn.nextInt() stdIn.nextInt stdIn int max = a; max a int min = a; min a if(max < b)
		{
			max = b;
		} max < b max b {
			max = b;
		} max = b max b if(min > b)
		{
			min = b;
		} min > b min b {
			min = b;
		} min = b min b if(max < c)
		{
			max = c;
		} max < c max c {
			max = c;
		} max = c max c if(min > c)
		{
			min = c;
		} min > c min c {
			min = c;
		} min = c min c System.out.println(max - min) System.out.println System.out System System.out max - min max min String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();

		int max = a;
		int min = a;

		if(max < b)
		{
			max = b;
		}
		if(min > b)
		{
			min = b;
		}
		if(max < c)
		{
			max = c;
		}
		if(min > c)
		{
			min = c;
		}

		System.out.println(max - min);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();

		int max = a;
		int min = a;

		if(max < b)
		{
			max = b;
		}
		if(min > b)
		{
			min = b;
		}
		if(max < c)
		{
			max = c;
		}
		if(min > c)
		{
			min = c;
		}

		System.out.println(max - min);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();

		int max = a;
		int min = a;

		if(max < b)
		{
			max = b;
		}
		if(min > b)
		{
			min = b;
		}
		if(max < c)
		{
			max = c;
		}
		if(min > c)
		{
			min = c;
		}

		System.out.println(max - min);

	}

}
