import java.util.Scanner;

public class Main {
	  public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();}
		  } import java.util.Scanner; Scanner java.util public class Main {
	  public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();}
		  } Main public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();} main {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A1 = scanner.nextInt(); A1 scanner.nextInt() scanner.nextInt scanner int A2 = scanner.nextInt(); A2 scanner.nextInt() scanner.nextInt scanner int A3 = scanner.nextInt(); A3 scanner.nextInt() scanner.nextInt scanner int max = A1; max A1 int min = A1; min A1 if(A2 > max) 
		    {
		    	max = A2;
		    } A2 > max A2 max {
		    	max = A2;
		    } max = A2 max A2 if(A2 < min) 
		    {
		    	min = A2;
		    } A2 < min A2 min {
		    	min = A2;
		    } min = A2 min A2 if(A3 > max) 
		    {
		    	max = A3;
		    } A3 > max A3 max {
		    	max = A3;
		    } max = A3 max A3 if(A3 < min) 
		    {
		    	min = A3;
		    } A3 < min A3 min {
		    	min = A3;
		    } min = A3 min A3 System.out.println(max - min) System.out.println System.out System System.out max - min max min scanner.close() scanner.close scanner String args[] args public class Main {
	  public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();}
		  } public class Main {
	  public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();}
		  } Main
import java.util.Scanner;

public class Main {
	  public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();}
		  }