import java.util.*;
public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int a3 = sc.nextInt();
        int m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3));
        System.out.println(m);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int a3 = sc.nextInt();
        int m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3));
        System.out.println(m);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int a3 = sc.nextInt();
        int m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3));
        System.out.println(m);
    } main {
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int a3 = sc.nextInt();
        int m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3));
        System.out.println(m);
    } 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 m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3)); m Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3)) Math.abs Math Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3) Math.max(a1,Math.max(a2,a3)) Math.max Math a1 Math.max(a2,a3) Math.max Math a2 a3 Math.min(Math.min(a1,a2),a3) Math.min Math Math.min(a1,a2) Math.min Math a1 a2 a3 System.out.println(m) System.out.println System.out System System.out m String[] args args public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int a3 = sc.nextInt();
        int m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3));
        System.out.println(m);
    }
} public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int a3 = sc.nextInt();
        int m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3));
        System.out.println(m);
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int a3 = sc.nextInt();
        int m = Math.abs(Math.max(a1,Math.max(a2,a3)) - Math.min(Math.min(a1,a2),a3));
        System.out.println(m);
    }
}
