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

public class Main {
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		int numbers[] = new int[3];
		for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		}
		Arrays.sort(numbers);
		int A = numbers[1] - numbers[0];
		int B = numbers[2] - numbers[1];
		int C = A + B ;
		String s = String.valueOf(C);
		System.out.println(s);
   }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		int numbers[] = new int[3];
		for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		}
		Arrays.sort(numbers);
		int A = numbers[1] - numbers[0];
		int B = numbers[2] - numbers[1];
		int C = A + B ;
		String s = String.valueOf(C);
		System.out.println(s);
   }
} Main public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		int numbers[] = new int[3];
		for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		}
		Arrays.sort(numbers);
		int A = numbers[1] - numbers[0];
		int B = numbers[2] - numbers[1];
		int C = A + B ;
		String s = String.valueOf(C);
		System.out.println(s);
   } main {
		Scanner a = new Scanner(System.in);
		int numbers[] = new int[3];
		for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		}
		Arrays.sort(numbers);
		int A = numbers[1] - numbers[0];
		int B = numbers[2] - numbers[1];
		int C = A + B ;
		String s = String.valueOf(C);
		System.out.println(s);
   } Scanner a = new Scanner(System.in); a new Scanner(System.in) int numbers[] = new int[3]; numbers new int[3] 3 for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		} int i =0; int i =0; i 0 i < 3 i 3 i ++ i ++ i {
			numbers[i] = a.nextInt();
		} {
			numbers[i] = a.nextInt();
		} numbers[i] = a.nextInt() numbers[i] numbers i a.nextInt() a.nextInt a Arrays.sort(numbers) Arrays.sort Arrays numbers int A = numbers[1] - numbers[0]; A numbers[1] - numbers[0] numbers[1] numbers 1 numbers[0] numbers 0 int B = numbers[2] - numbers[1]; B numbers[2] - numbers[1] numbers[2] numbers 2 numbers[1] numbers 1 int C = A + B ; C A + B A B String s = String.valueOf(C); s String.valueOf(C) String.valueOf String C System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		int numbers[] = new int[3];
		for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		}
		Arrays.sort(numbers);
		int A = numbers[1] - numbers[0];
		int B = numbers[2] - numbers[1];
		int C = A + B ;
		String s = String.valueOf(C);
		System.out.println(s);
   }
} public class Main {
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		int numbers[] = new int[3];
		for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		}
		Arrays.sort(numbers);
		int A = numbers[1] - numbers[0];
		int B = numbers[2] - numbers[1];
		int C = A + B ;
		String s = String.valueOf(C);
		System.out.println(s);
   }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		int numbers[] = new int[3];
		for(int i =0; i < 3; i ++) {
			numbers[i] = a.nextInt();
		}
		Arrays.sort(numbers);
		int A = numbers[1] - numbers[0];
		int B = numbers[2] - numbers[1];
		int C = A + B ;
		String s = String.valueOf(C);
		System.out.println(s);
   }
}