import java.util.Scanner;

public class Main {
	
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int max = Integer.MIN_VALUE;
		int min = Integer.MAX_VALUE;
		for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		}
		
		System.out.println(max-min);
		

	}

} import java.util.Scanner; Scanner java.util public class Main {
	
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int max = Integer.MIN_VALUE;
		int min = Integer.MAX_VALUE;
		for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		}
		
		System.out.println(max-min);
		

	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		// TODO Auto-generated method stub
		int max = Integer.MIN_VALUE;
		int min = Integer.MAX_VALUE;
		for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		}
		
		System.out.println(max-min);
		

	} main {
		// TODO Auto-generated method stub
		int max = Integer.MIN_VALUE;
		int min = Integer.MAX_VALUE;
		for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		}
		
		System.out.println(max-min);
		

	} int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		} {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc max = Math.max(max,a) max Math.max(max,a) Math.max Math max a min = Math.min(min, a) min Math.min(min, a) Math.min Math min a System.out.println(max-min) System.out.println System.out System System.out max-min max min String[] args args public class Main {
	
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int max = Integer.MIN_VALUE;
		int min = Integer.MAX_VALUE;
		for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		}
		
		System.out.println(max-min);
		

	}

} public class Main {
	
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int max = Integer.MIN_VALUE;
		int min = Integer.MAX_VALUE;
		for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		}
		
		System.out.println(max-min);
		

	}

} Main
import java.util.Scanner;

public class Main {
	
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int max = Integer.MIN_VALUE;
		int min = Integer.MAX_VALUE;
		for(int i=0; i<3; i++) {
			int a = sc.nextInt();
			max = Math.max(max,a);
			min = Math.min(min, a);
		}
		
		System.out.println(max-min);
		

	}

}