import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int A1 = scanner.nextInt();
		int A2 = scanner.nextInt();
		int A3 = scanner.nextInt();
		scanner.close();

		int[] A = { A1, A2, A3 };
		Arrays.sort(A);

		System.out.println(A[2] - A[0]);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int A1 = scanner.nextInt();
		int A2 = scanner.nextInt();
		int A3 = scanner.nextInt();
		scanner.close();

		int[] A = { A1, A2, A3 };
		Arrays.sort(A);

		System.out.println(A[2] - A[0]);
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int A1 = scanner.nextInt();
		int A2 = scanner.nextInt();
		int A3 = scanner.nextInt();
		scanner.close();

		int[] A = { A1, A2, A3 };
		Arrays.sort(A);

		System.out.println(A[2] - A[0]);
	} main {
		Scanner scanner = new Scanner(System.in);
		int A1 = scanner.nextInt();
		int A2 = scanner.nextInt();
		int A3 = scanner.nextInt();
		scanner.close();

		int[] A = { A1, A2, A3 };
		Arrays.sort(A);

		System.out.println(A[2] - A[0]);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A1 = scanner.nextInt(); A1 scanner.nextInt() scanner.nextInt scanner int A2 = scanner.nextInt(); A2 scanner.nextInt() scanner.nextInt scanner int A3 = scanner.nextInt(); A3 scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner int[] A = { A1, A2, A3 }; A { A1, A2, A3 } A1 A2 A3 Arrays.sort(A) Arrays.sort Arrays A System.out.println(A[2] - A[0]) System.out.println System.out System System.out A[2] - A[0] A[2] A 2 A[0] A 0 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int A1 = scanner.nextInt();
		int A2 = scanner.nextInt();
		int A3 = scanner.nextInt();
		scanner.close();

		int[] A = { A1, A2, A3 };
		Arrays.sort(A);

		System.out.println(A[2] - A[0]);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int A1 = scanner.nextInt();
		int A2 = scanner.nextInt();
		int A3 = scanner.nextInt();
		scanner.close();

		int[] A = { A1, A2, A3 };
		Arrays.sort(A);

		System.out.println(A[2] - A[0]);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int A1 = scanner.nextInt();
		int A2 = scanner.nextInt();
		int A3 = scanner.nextInt();
		scanner.close();

		int[] A = { A1, A2, A3 };
		Arrays.sort(A);

		System.out.println(A[2] - A[0]);
	}
}
