import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int r = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        int num[] = new int[3];
        //String s = stdIn.next();
        //char c[] = s.toCharArray();
        //boolean flag = true;
        
        for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        }
        
        Arrays.sort(num);
        
        System.out.println(num[2] - num[0]);
        
        //System.out.println();
        //System.out.print();
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int r = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        int num[] = new int[3];
        //String s = stdIn.next();
        //char c[] = s.toCharArray();
        //boolean flag = true;
        
        for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        }
        
        Arrays.sort(num);
        
        System.out.println(num[2] - num[0]);
        
        //System.out.println();
        //System.out.print();
    }
} Main public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int r = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        int num[] = new int[3];
        //String s = stdIn.next();
        //char c[] = s.toCharArray();
        //boolean flag = true;
        
        for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        }
        
        Arrays.sort(num);
        
        System.out.println(num[2] - num[0]);
        
        //System.out.println();
        //System.out.print();
    } main {
        Scanner stdIn = new Scanner(System.in);
        
        //int r = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        int num[] = new int[3];
        //String s = stdIn.next();
        //char c[] = s.toCharArray();
        //boolean flag = true;
        
        for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        }
        
        Arrays.sort(num);
        
        System.out.println(num[2] - num[0]);
        
        //System.out.println();
        //System.out.print();
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int num[] = new int[3]; num new int[3] 3 for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            num[i] = stdIn.nextInt();
        } {
            num[i] = stdIn.nextInt();
        } num[i] = stdIn.nextInt() num[i] num i stdIn.nextInt() stdIn.nextInt stdIn Arrays.sort(num) Arrays.sort Arrays num System.out.println(num[2] - num[0]) System.out.println System.out System System.out num[2] - num[0] num[2] num 2 num[0] num 0 String args[] args public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int r = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        int num[] = new int[3];
        //String s = stdIn.next();
        //char c[] = s.toCharArray();
        //boolean flag = true;
        
        for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        }
        
        Arrays.sort(num);
        
        System.out.println(num[2] - num[0]);
        
        //System.out.println();
        //System.out.print();
    }
} public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int r = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        int num[] = new int[3];
        //String s = stdIn.next();
        //char c[] = s.toCharArray();
        //boolean flag = true;
        
        for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        }
        
        Arrays.sort(num);
        
        System.out.println(num[2] - num[0]);
        
        //System.out.println();
        //System.out.print();
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int r = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        int num[] = new int[3];
        //String s = stdIn.next();
        //char c[] = s.toCharArray();
        //boolean flag = true;
        
        for(int i = 0; i < 3; i++){
            num[i] = stdIn.nextInt();
        }
        
        Arrays.sort(num);
        
        System.out.println(num[2] - num[0]);
        
        //System.out.println();
        //System.out.print();
    }
}
