import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int max =0;
        int min = 101;
        for(int i=0;i<3;i++){
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        }
        System.out.println(max-min);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int max =0;
        int min = 101;
        for(int i=0;i<3;i++){
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        }
        System.out.println(max-min);
    }
} Main public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int max =0;
        int min = 101;
        for(int i=0;i<3;i++){
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        }
        System.out.println(max-min);
    } main {
        Scanner scn=new Scanner(System.in);
        int max =0;
        int min = 101;
        for(int i=0;i<3;i++){
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        }
        System.out.println(max-min);
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int max =0; max 0 int min = 101; min 101 for(int i=0;i<3;i++){
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        } {
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        } int task = scn.nextInt(); task scn.nextInt() scn.nextInt scn max= Math.max(task,max) max Math.max(task,max) Math.max Math task max min=Math.min(task,min) min Math.min(task,min) Math.min Math task min System.out.println(max-min) System.out.println System.out System System.out max-min max min String arg[] arg
import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int max =0;
        int min = 101;
        for(int i=0;i<3;i++){
            int task = scn.nextInt();
            max= Math.max(task,max);
            min=Math.min(task,min);
        }
        System.out.println(max-min);
    }
}
