import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[3];
		for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		}
		for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		}
		System.out.println((A[2]-A[1])+(A[1]-A[0]));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[3];
		for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		}
		for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		}
		System.out.println((A[2]-A[1])+(A[1]-A[0]));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[3];
		for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		}
		for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		}
		System.out.println((A[2]-A[1])+(A[1]-A[0]));
	} main {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[3];
		for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		}
		for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		}
		System.out.println((A[2]-A[1])+(A[1]-A[0]));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] A = new int[3]; A new int[3] 3 for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<=2 i 2 i++ i++ i {
			A[i] = sc.nextInt();
		} {
			A[i] = sc.nextInt();
		} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		} {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		} for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			} int j=2; int j=2; j 2 j>i j i j-- j-- j {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			} {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			} if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				} A[i]>A[j] A[i] A i A[j] A j {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				} int temp=A[i]; temp A[i] A i A[i] = A[j] A[i] A i A[j] A j A[j] = temp A[j] A j temp System.out.println((A[2]-A[1])+(A[1]-A[0])) System.out.println System.out System System.out (A[2]-A[1])+(A[1]-A[0]) (A[2]-A[1]) A[2] A 2 A[1] A 1 (A[1]-A[0]) A[1] A 1 A[0] A 0 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[3];
		for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		}
		for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		}
		System.out.println((A[2]-A[1])+(A[1]-A[0]));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[3];
		for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		}
		for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		}
		System.out.println((A[2]-A[1])+(A[1]-A[0]));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[3];
		for(int i=0;i<=2;i++) {
			A[i] = sc.nextInt();
		}
		for(int i=0;i<3;i++) {
			for(int j=2;j>i;j--) {
				if(A[i]>A[j]) {
					int temp=A[i];
					A[i] = A[j];
					A[j] = temp;
				}
			}
		}
		System.out.println((A[2]-A[1])+(A[1]-A[0]));
	}
}
