import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];

        for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt();
        
        Arrays.sort(A);
        int ans = A[2] - A[0];
        
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];

        for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt();
        
        Arrays.sort(A);
        int ans = A[2] - A[0];
        
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];

        for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt();
        
        Arrays.sort(A);
        int ans = A[2] - A[0];
        
        System.out.println(ans);
    } main {
        
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];

        for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt();
        
        Arrays.sort(A);
        int ans = A[2] - A[0];
        
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] A = new int[3]; A new int[3] 3 for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i A[i] = sc.nextInt(); A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc Arrays.sort(A) Arrays.sort Arrays A int ans = A[2] - A[0]; ans A[2] - A[0] A[2] A 2 A[0] A 0 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];

        for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt();
        
        Arrays.sort(A);
        int ans = A[2] - A[0];
        
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];

        for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt();
        
        Arrays.sort(A);
        int ans = A[2] - A[0];
        
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];

        for(int i = 0; i < 3; i++ ) A[i] = sc.nextInt();
        
        Arrays.sort(A);
        int ans = A[2] - A[0];
        
        System.out.println(ans);
    }
}
