import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] aaa = scanner.nextLine().split(" ", 3);

        int[] arr = new int[3];
        for (int i = 0; i < 3; i++) {
            arr[i] = Integer.parseInt(aaa[i]);
        }
        Arrays.sort(arr);

        System.out.println(arr[2] - arr[0]);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] aaa = scanner.nextLine().split(" ", 3);

        int[] arr = new int[3];
        for (int i = 0; i < 3; i++) {
            arr[i] = Integer.parseInt(aaa[i]);
        }
        Arrays.sort(arr);

        System.out.println(arr[2] - arr[0]);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] aaa = scanner.nextLine().split(" ", 3);

        int[] arr = new int[3];
        for (int i = 0; i < 3; i++) {
            arr[i] = Integer.parseInt(aaa[i]);
        }
        Arrays.sort(arr);

        System.out.println(arr[2] - arr[0]);
    } main {
        Scanner scanner = new Scanner(System.in);
        String[] aaa = scanner.nextLine().split(" ", 3);

        int[] arr = new int[3];
        for (int i = 0; i < 3; i++) {
            arr[i] = Integer.parseInt(aaa[i]);
        }
        Arrays.sort(arr);

        System.out.println(arr[2] - arr[0]);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] aaa = scanner.nextLine().split(" ", 3); aaa scanner.nextLine().split(" ", 3) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " 3 int[] arr = new int[3]; arr new int[3] 3 for (int i = 0; i < 3; i++) {
            arr[i] = Integer.parseInt(aaa[i]);
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            arr[i] = Integer.parseInt(aaa[i]);
        } {
            arr[i] = Integer.parseInt(aaa[i]);
        } arr[i] = Integer.parseInt(aaa[i]) arr[i] arr i Integer.parseInt(aaa[i]) Integer.parseInt Integer aaa[i] aaa i Arrays.sort(arr) Arrays.sort Arrays arr System.out.println(arr[2] - arr[0]) System.out.println System.out System System.out arr[2] - arr[0] arr[2] arr 2 arr[0] arr 0 String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] aaa = scanner.nextLine().split(" ", 3);

        int[] arr = new int[3];
        for (int i = 0; i < 3; i++) {
            arr[i] = Integer.parseInt(aaa[i]);
        }
        Arrays.sort(arr);

        System.out.println(arr[2] - arr[0]);
    }
}
