import java.util.Scanner;
import java.util.Arrays;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    System.out.println(Math.max(Math.max(a,b),c)-Math.min(Math.min(a,b),c));
    
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    System.out.println(Math.max(Math.max(a,b),c)-Math.min(Math.min(a,b),c));
    
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    System.out.println(Math.max(Math.max(a,b),c)-Math.min(Math.min(a,b),c));
    
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    System.out.println(Math.max(Math.max(a,b),c)-Math.min(Math.min(a,b),c));
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc System.out.println(Math.max(Math.max(a,b),c)-Math.min(Math.min(a,b),c)) System.out.println System.out System System.out Math.max(Math.max(a,b),c)-Math.min(Math.min(a,b),c) Math.max(Math.max(a,b),c) Math.max Math Math.max(a,b) Math.max Math a b c Math.min(Math.min(a,b),c) Math.min Math Math.min(a,b) Math.min Math a b c String[] args args
import java.util.Scanner;
import java.util.Arrays;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    System.out.println(Math.max(Math.max(a,b),c)-Math.min(Math.min(a,b),c));
    
  }
}