import java.util.Scanner;

public class Main {

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

} 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];
			a[0] = sc.nextInt();
			a[1] = sc.nextInt();
			a[2] = sc.nextInt();
			int hoge;
			for(int i = 0;i < a.length;i++) {
				for(int j = 0 ;j < i ;j++) {
					if(a[i] < a[j]) {
						hoge = a[i];
						a[i] = a[j];
						a[j] = hoge;
					}
				}
			}
			hoge = a[1] - a[0];
			hoge += a[2] - a[1];
			System.out.println(hoge);
	}

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

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

} public class Main {

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

} 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];
			a[0] = sc.nextInt();
			a[1] = sc.nextInt();
			a[2] = sc.nextInt();
			int hoge;
			for(int i = 0;i < a.length;i++) {
				for(int j = 0 ;j < i ;j++) {
					if(a[i] < a[j]) {
						hoge = a[i];
						a[i] = a[j];
						a[j] = hoge;
					}
				}
			}
			hoge = a[1] - a[0];
			hoge += a[2] - a[1];
			System.out.println(hoge);
	}

}
