import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		int C = Integer.parseInt(sc.next());

		int max = Math.max(Math.max(A, B), C);
		int min = Math.min(Math.min(A, B), C);
		System.out.println(max - min);
		sc.close();

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		int C = Integer.parseInt(sc.next());

		int max = Math.max(Math.max(A, B), C);
		int min = Math.min(Math.min(A, B), C);
		System.out.println(max - min);
		sc.close();

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		int C = Integer.parseInt(sc.next());

		int max = Math.max(Math.max(A, B), C);
		int min = Math.min(Math.min(A, B), C);
		System.out.println(max - min);
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		int C = Integer.parseInt(sc.next());

		int max = Math.max(Math.max(A, B), C);
		int min = Math.min(Math.min(A, B), C);
		System.out.println(max - min);
		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int C = Integer.parseInt(sc.next()); C Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int max = Math.max(Math.max(A, B), C); max Math.max(Math.max(A, B), C) Math.max Math Math.max(A, B) Math.max Math A B C int min = Math.min(Math.min(A, B), C); min Math.min(Math.min(A, B), C) Math.min Math Math.min(A, B) Math.min Math A B C System.out.println(max - min) System.out.println System.out System System.out max - min max min sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		int C = Integer.parseInt(sc.next());

		int max = Math.max(Math.max(A, B), C);
		int min = Math.min(Math.min(A, B), C);
		System.out.println(max - min);
		sc.close();

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		int C = Integer.parseInt(sc.next());

		int max = Math.max(Math.max(A, B), C);
		int min = Math.min(Math.min(A, B), C);
		System.out.println(max - min);
		sc.close();

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		int C = Integer.parseInt(sc.next());

		int max = Math.max(Math.max(A, B), C);
		int min = Math.min(Math.min(A, B), C);
		System.out.println(max - min);
		sc.close();

	}
}