import java.util.*;

public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
	A[0]=sc.nextInt();
	A[1]=sc.nextInt();
	A[2]=sc.nextInt();
	Arrays.sort(A);
	System.out.print(A[2]-A[0]);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
	A[0]=sc.nextInt();
	A[1]=sc.nextInt();
	A[2]=sc.nextInt();
	Arrays.sort(A);
	System.out.print(A[2]-A[0]);
    }
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
	A[0]=sc.nextInt();
	A[1]=sc.nextInt();
	A[2]=sc.nextInt();
	Arrays.sort(A);
	System.out.print(A[2]-A[0]);
    } main {
	Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
	A[0]=sc.nextInt();
	A[1]=sc.nextInt();
	A[2]=sc.nextInt();
	Arrays.sort(A);
	System.out.print(A[2]-A[0]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] A = new int[3]; A new int[3] 3 A[0]=sc.nextInt() A[0] A 0 sc.nextInt() sc.nextInt sc A[1]=sc.nextInt() A[1] A 1 sc.nextInt() sc.nextInt sc A[2]=sc.nextInt() A[2] A 2 sc.nextInt() sc.nextInt sc Arrays.sort(A) Arrays.sort Arrays A System.out.print(A[2]-A[0]) System.out.print System.out System System.out A[2]-A[0] A[2] A 2 A[0] A 0 String[] args args public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
	A[0]=sc.nextInt();
	A[1]=sc.nextInt();
	A[2]=sc.nextInt();
	Arrays.sort(A);
	System.out.print(A[2]-A[0]);
    }
} public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
	A[0]=sc.nextInt();
	A[1]=sc.nextInt();
	A[2]=sc.nextInt();
	Arrays.sort(A);
	System.out.print(A[2]-A[0]);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
	A[0]=sc.nextInt();
	A[1]=sc.nextInt();
	A[2]=sc.nextInt();
	Arrays.sort(A);
	System.out.print(A[2]-A[0]);
    }
}
