import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A_1 = sc.nextInt();
      int A_2 = sc.nextInt();
      int A_3 = sc.nextInt();
      int[] S = new int[]{A_1,A_2,A_3};
      Arrays.sort(S);
      
      System.out.println(S[2]-S[0]);
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A_1 = sc.nextInt();
      int A_2 = sc.nextInt();
      int A_3 = sc.nextInt();
      int[] S = new int[]{A_1,A_2,A_3};
      Arrays.sort(S);
      
      System.out.println(S[2]-S[0]);
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A_1 = sc.nextInt();
      int A_2 = sc.nextInt();
      int A_3 = sc.nextInt();
      int[] S = new int[]{A_1,A_2,A_3};
      Arrays.sort(S);
      
      System.out.println(S[2]-S[0]);
    } main {
		Scanner sc = new Scanner(System.in);
      int A_1 = sc.nextInt();
      int A_2 = sc.nextInt();
      int A_3 = sc.nextInt();
      int[] S = new int[]{A_1,A_2,A_3};
      Arrays.sort(S);
      
      System.out.println(S[2]-S[0]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A_1 = sc.nextInt(); A_1 sc.nextInt() sc.nextInt sc int A_2 = sc.nextInt(); A_2 sc.nextInt() sc.nextInt sc int A_3 = sc.nextInt(); A_3 sc.nextInt() sc.nextInt sc int[] S = new int[]{A_1,A_2,A_3}; S new int[]{A_1,A_2,A_3} Arrays.sort(S) Arrays.sort Arrays S System.out.println(S[2]-S[0]) System.out.println System.out System System.out S[2]-S[0] S[2] S 2 S[0] S 0 String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A_1 = sc.nextInt();
      int A_2 = sc.nextInt();
      int A_3 = sc.nextInt();
      int[] S = new int[]{A_1,A_2,A_3};
      Arrays.sort(S);
      
      System.out.println(S[2]-S[0]);
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A_1 = sc.nextInt();
      int A_2 = sc.nextInt();
      int A_3 = sc.nextInt();
      int[] S = new int[]{A_1,A_2,A_3};
      Arrays.sort(S);
      
      System.out.println(S[2]-S[0]);
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A_1 = sc.nextInt();
      int A_2 = sc.nextInt();
      int A_3 = sc.nextInt();
      int[] S = new int[]{A_1,A_2,A_3};
      Arrays.sort(S);
      
      System.out.println(S[2]-S[0]);
    }
}