import java.util.*;

public class Main {
  	static Scanner scanner = new Scanner(System.in);
  
	public static void main(String[]$) {
      	int a1 = scanner.nextInt(), a2 = scanner.nextInt(), a3 = scanner.nextInt();
    	System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3));
    }
} import java.util.*; util.* java public class Main {
  	static Scanner scanner = new Scanner(System.in);
  
	public static void main(String[]$) {
      	int a1 = scanner.nextInt(), a2 = scanner.nextInt(), a3 = scanner.nextInt();
    	System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3));
    }
} Main static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[]$) {
      	int a1 = scanner.nextInt(), a2 = scanner.nextInt(), a3 = scanner.nextInt();
    	System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3));
    } main {
      	int a1 = scanner.nextInt(), a2 = scanner.nextInt(), a3 = scanner.nextInt();
    	System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3));
    } int a1 = scanner.nextInt() a1 scanner.nextInt() scanner.nextInt scanner a2 = scanner.nextInt() a2 scanner.nextInt() scanner.nextInt scanner a3 = scanner.nextInt(); a3 scanner.nextInt() scanner.nextInt scanner System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3)) System.out.println System.out System System.out Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3) Math.max(Math.max(a1, a2), a3) Math.max Math Math.max(a1, a2) Math.max Math a1 a2 a3 Math.min(Math.min(a1, a2), a3) Math.min Math Math.min(a1, a2) Math.min Math a1 a2 a3 String[]$ $ public class Main {
  	static Scanner scanner = new Scanner(System.in);
  
	public static void main(String[]$) {
      	int a1 = scanner.nextInt(), a2 = scanner.nextInt(), a3 = scanner.nextInt();
    	System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3));
    }
} public class Main {
  	static Scanner scanner = new Scanner(System.in);
  
	public static void main(String[]$) {
      	int a1 = scanner.nextInt(), a2 = scanner.nextInt(), a3 = scanner.nextInt();
    	System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3));
    }
} Main
import java.util.*;

public class Main {
  	static Scanner scanner = new Scanner(System.in);
  
	public static void main(String[]$) {
      	int a1 = scanner.nextInt(), a2 = scanner.nextInt(), a3 = scanner.nextInt();
    	System.out.println(Math.max(Math.max(a1, a2), a3) - Math.min(Math.min(a1, a2), a3));
    }
}