import java.util.*;
import java.io.*;

public class Main{
	public static void main(String[] args){

	Scanner stdIn = new Scanner(System.in);
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	int a1 = stdIn.nextInt();
	int a2 = stdIn.nextInt();
	int a3 = stdIn.nextInt();

	int min = a1;
	int max = a1;

	if(min > a2)
		min = a2;
	if(min > a3)
		min = a3;

	if(max < a2)
		max = a2;
	if(max < a3)
		max = a3;

	int ans = max - min;
	System.out.println(ans);
		



	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
	public static void main(String[] args){

	Scanner stdIn = new Scanner(System.in);
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	int a1 = stdIn.nextInt();
	int a2 = stdIn.nextInt();
	int a3 = stdIn.nextInt();

	int min = a1;
	int max = a1;

	if(min > a2)
		min = a2;
	if(min > a3)
		min = a3;

	if(max < a2)
		max = a2;
	if(max < a3)
		max = a3;

	int ans = max - min;
	System.out.println(ans);
		



	}
} Main public static void main(String[] args){

	Scanner stdIn = new Scanner(System.in);
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	int a1 = stdIn.nextInt();
	int a2 = stdIn.nextInt();
	int a3 = stdIn.nextInt();

	int min = a1;
	int max = a1;

	if(min > a2)
		min = a2;
	if(min > a3)
		min = a3;

	if(max < a2)
		max = a2;
	if(max < a3)
		max = a3;

	int ans = max - min;
	System.out.println(ans);
		



	} main {

	Scanner stdIn = new Scanner(System.in);
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	int a1 = stdIn.nextInt();
	int a2 = stdIn.nextInt();
	int a3 = stdIn.nextInt();

	int min = a1;
	int max = a1;

	if(min > a2)
		min = a2;
	if(min > a3)
		min = a3;

	if(max < a2)
		max = a2;
	if(max < a3)
		max = a3;

	int ans = max - min;
	System.out.println(ans);
		



	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int a1 = stdIn.nextInt(); a1 stdIn.nextInt() stdIn.nextInt stdIn int a2 = stdIn.nextInt(); a2 stdIn.nextInt() stdIn.nextInt stdIn int a3 = stdIn.nextInt(); a3 stdIn.nextInt() stdIn.nextInt stdIn int min = a1; min a1 int max = a1; max a1 if(min > a2)
		min = a2; min > a2 min a2 min = a2 min a2 if(min > a3)
		min = a3; min > a3 min a3 min = a3 min a3 if(max < a2)
		max = a2; max < a2 max a2 max = a2 max a2 if(max < a3)
		max = a3; max < a3 max a3 max = a3 max a3 int ans = max - min; ans max - min max min System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args){

	Scanner stdIn = new Scanner(System.in);
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	int a1 = stdIn.nextInt();
	int a2 = stdIn.nextInt();
	int a3 = stdIn.nextInt();

	int min = a1;
	int max = a1;

	if(min > a2)
		min = a2;
	if(min > a3)
		min = a3;

	if(max < a2)
		max = a2;
	if(max < a3)
		max = a3;

	int ans = max - min;
	System.out.println(ans);
		



	}
} public class Main{
	public static void main(String[] args){

	Scanner stdIn = new Scanner(System.in);
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	int a1 = stdIn.nextInt();
	int a2 = stdIn.nextInt();
	int a3 = stdIn.nextInt();

	int min = a1;
	int max = a1;

	if(min > a2)
		min = a2;
	if(min > a3)
		min = a3;

	if(max < a2)
		max = a2;
	if(max < a3)
		max = a3;

	int ans = max - min;
	System.out.println(ans);
		



	}
} Main
import java.util.*;
import java.io.*;

public class Main{
	public static void main(String[] args){

	Scanner stdIn = new Scanner(System.in);
	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	
	int a1 = stdIn.nextInt();
	int a2 = stdIn.nextInt();
	int a3 = stdIn.nextInt();

	int min = a1;
	int max = a1;

	if(min > a2)
		min = a2;
	if(min > a3)
		min = a3;

	if(max < a2)
		max = a2;
	if(max < a3)
		max = a3;

	int ans = max - min;
	System.out.println(ans);
		



	}
}