import java.util.* ;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    ArrayList<Integer> arr = new ArrayList<>() ;
    for(int i = 0 ; i < 3 ; i++){
      arr.add(scan.nextInt());
    }
 
    System.out.println(Collections.max(arr,null) -Collections.min(arr, null));
    
  }
} import java.util.* ; util.* java class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    ArrayList<Integer> arr = new ArrayList<>() ;
    for(int i = 0 ; i < 3 ; i++){
      arr.add(scan.nextInt());
    }
 
    System.out.println(Collections.max(arr,null) -Collections.min(arr, null));
    
  }
} Main public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    ArrayList<Integer> arr = new ArrayList<>() ;
    for(int i = 0 ; i < 3 ; i++){
      arr.add(scan.nextInt());
    }
 
    System.out.println(Collections.max(arr,null) -Collections.min(arr, null));
    
  } main {
    
    Scanner scan = new Scanner(System.in);
    ArrayList<Integer> arr = new ArrayList<>() ;
    for(int i = 0 ; i < 3 ; i++){
      arr.add(scan.nextInt());
    }
 
    System.out.println(Collections.max(arr,null) -Collections.min(arr, null));
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList<Integer> arr = new ArrayList<>() ; arr new ArrayList<>() for(int i = 0 ; i < 3 ; i++){
      arr.add(scan.nextInt());
    } int i = 0 ; int i = 0 ; i 0 i < 3 i 3 i++ i++ i {
      arr.add(scan.nextInt());
    } {
      arr.add(scan.nextInt());
    } arr.add(scan.nextInt()) arr.add arr scan.nextInt() scan.nextInt scan System.out.println(Collections.max(arr,null) -Collections.min(arr, null)) System.out.println System.out System System.out Collections.max(arr,null) -Collections.min(arr, null) Collections.max(arr,null) Collections.max Collections arr null Collections.min(arr, null) Collections.min Collections arr null String[] args args
import java.util.* ;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    ArrayList<Integer> arr = new ArrayList<>() ;
    for(int i = 0 ; i < 3 ; i++){
      arr.add(scan.nextInt());
    }
 
    System.out.println(Collections.max(arr,null) -Collections.min(arr, null));
    
  }
}
