import java.util.*;
public 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();
	int max = 0;
	int abc[] = {a,b,c};
	Arrays.sort(abc);
	for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	}
	System.out.println(Math.abs(max));	
	}	
}
	 import java.util.*; util.* java public 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();
	int max = 0;
	int abc[] = {a,b,c};
	Arrays.sort(abc);
	for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	}
	System.out.println(Math.abs(max));	
	}	
} 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();
	int max = 0;
	int abc[] = {a,b,c};
	Arrays.sort(abc);
	for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	}
	System.out.println(Math.abs(max));	
	} main {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int max = 0;
	int abc[] = {a,b,c};
	Arrays.sort(abc);
	for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	}
	System.out.println(Math.abs(max));	
	} 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 int max = 0; max 0 int abc[] = {a,b,c}; abc {a,b,c} a b c Arrays.sort(abc) Arrays.sort Arrays abc for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
		max = max + abc[i] - abc[i+1];
	} {
		max = max + abc[i] - abc[i+1];
	} max = max + abc[i] - abc[i+1] max max + abc[i] - abc[i+1] max + abc[i] max abc[i] abc i abc[i+1] abc i+1 i 1 System.out.println(Math.abs(max)) System.out.println System.out System System.out Math.abs(max) Math.abs Math max String[] args args public 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();
	int max = 0;
	int abc[] = {a,b,c};
	Arrays.sort(abc);
	for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	}
	System.out.println(Math.abs(max));	
	}	
} public 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();
	int max = 0;
	int abc[] = {a,b,c};
	Arrays.sort(abc);
	for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	}
	System.out.println(Math.abs(max));	
	}	
} Main
import java.util.*;
public 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();
	int max = 0;
	int abc[] = {a,b,c};
	Arrays.sort(abc);
	for(int i = 0;i < 2;i++){
		max = max + abc[i] - abc[i+1];
	}
	System.out.println(Math.abs(max));	
	}	
}
	