import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int A1 = sc.nextInt();
        int A2 = sc.nextInt();
        int A3 = sc.nextInt();
        
        int max = Math.max(A1, Math.max(A2, A3) );
        int min = Math.min(A1, Math.min(A2, A3) );
        System.out.println(max - min);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int A1 = sc.nextInt();
        int A2 = sc.nextInt();
        int A3 = sc.nextInt();
        
        int max = Math.max(A1, Math.max(A2, A3) );
        int min = Math.min(A1, Math.min(A2, A3) );
        System.out.println(max - min);
    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int A1 = sc.nextInt();
        int A2 = sc.nextInt();
        int A3 = sc.nextInt();
        
        int max = Math.max(A1, Math.max(A2, A3) );
        int min = Math.min(A1, Math.min(A2, A3) );
        System.out.println(max - min);
    } main {

        Scanner sc = new Scanner(System.in);
        
        int A1 = sc.nextInt();
        int A2 = sc.nextInt();
        int A3 = sc.nextInt();
        
        int max = Math.max(A1, Math.max(A2, A3) );
        int min = Math.min(A1, Math.min(A2, A3) );
        System.out.println(max - min);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A1 = sc.nextInt(); A1 sc.nextInt() sc.nextInt sc int A2 = sc.nextInt(); A2 sc.nextInt() sc.nextInt sc int A3 = sc.nextInt(); A3 sc.nextInt() sc.nextInt sc int max = Math.max(A1, Math.max(A2, A3) ); max Math.max(A1, Math.max(A2, A3) ) Math.max Math A1 Math.max(A2, A3) Math.max Math A2 A3 int min = Math.min(A1, Math.min(A2, A3) ); min Math.min(A1, Math.min(A2, A3) ) Math.min Math A1 Math.min(A2, A3) Math.min Math A2 A3 System.out.println(max - min) System.out.println System.out System System.out max - min max min String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int A1 = sc.nextInt();
        int A2 = sc.nextInt();
        int A3 = sc.nextInt();
        
        int max = Math.max(A1, Math.max(A2, A3) );
        int min = Math.min(A1, Math.min(A2, A3) );
        System.out.println(max - min);
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int A1 = sc.nextInt();
        int A2 = sc.nextInt();
        int A3 = sc.nextInt();
        
        int max = Math.max(A1, Math.max(A2, A3) );
        int min = Math.min(A1, Math.min(A2, A3) );
        System.out.println(max - min);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int A1 = sc.nextInt();
        int A2 = sc.nextInt();
        int A3 = sc.nextInt();
        
        int max = Math.max(A1, Math.max(A2, A3) );
        int min = Math.min(A1, Math.min(A2, A3) );
        System.out.println(max - min);
    }
}
