import java.util.*;

public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int[] a = new int[3];
        a[0] = scan.nextInt();
        a[1] = scan.nextInt();
        a[2] = scan.nextInt();
        Arrays.sort(a);
        System.out.println(a[2] - a[0]);
        scan.close();
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} import java.util.*; util.* java public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int[] a = new int[3];
        a[0] = scan.nextInt();
        a[1] = scan.nextInt();
        a[2] = scan.nextInt();
        Arrays.sort(a);
        System.out.println(a[2] - a[0]);
        scan.close();
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} Main void solve(){
        Scanner scan = new Scanner(System.in);
        int[] a = new int[3];
        a[0] = scan.nextInt();
        a[1] = scan.nextInt();
        a[2] = scan.nextInt();
        Arrays.sort(a);
        System.out.println(a[2] - a[0]);
        scan.close();
    } solve {
        Scanner scan = new Scanner(System.in);
        int[] a = new int[3];
        a[0] = scan.nextInt();
        a[1] = scan.nextInt();
        a[2] = scan.nextInt();
        Arrays.sort(a);
        System.out.println(a[2] - a[0]);
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] a = new int[3]; a new int[3] 3 a[0] = scan.nextInt() a[0] a 0 scan.nextInt() scan.nextInt scan a[1] = scan.nextInt() a[1] a 1 scan.nextInt() scan.nextInt scan a[2] = scan.nextInt() a[2] a 2 scan.nextInt() scan.nextInt scan Arrays.sort(a) Arrays.sort Arrays a System.out.println(a[2] - a[0]) System.out.println System.out System System.out a[2] - a[0] a[2] a 2 a[0] a 0 scan.close() scan.close scan public static void main(String[] args){
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int[] a = new int[3];
        a[0] = scan.nextInt();
        a[1] = scan.nextInt();
        a[2] = scan.nextInt();
        Arrays.sort(a);
        System.out.println(a[2] - a[0]);
        scan.close();
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int[] a = new int[3];
        a[0] = scan.nextInt();
        a[1] = scan.nextInt();
        a[2] = scan.nextInt();
        Arrays.sort(a);
        System.out.println(a[2] - a[0]);
        scan.close();
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} Main
import java.util.*;

public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int[] a = new int[3];
        a[0] = scan.nextInt();
        a[1] = scan.nextInt();
        a[2] = scan.nextInt();
        Arrays.sort(a);
        System.out.println(a[2] - a[0]);
        scan.close();
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
}