import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a= new int[3];
		for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		}
		int max=Integer.MIN_VALUE;
		for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		}
		System.out.println(max);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a= new int[3];
		for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		}
		int max=Integer.MIN_VALUE;
		for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		}
		System.out.println(max);
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a= new int[3];
		for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		}
		int max=Integer.MIN_VALUE;
		for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		}
		System.out.println(max);
	} main {
		Scanner scan = new Scanner(System.in);
		int[] a= new int[3];
		for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		}
		int max=Integer.MIN_VALUE;
		for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		}
		System.out.println(max);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] a= new int[3]; a new int[3] 3 for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			a[i]=scan.nextInt();
		} {
			a[i]=scan.nextInt();
		} a[i]=scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan int max=Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		} {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		} for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			} int j=i+1; int j=i+1; j i+1 i 1 j<3 j 3 j++ j++ j {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			} {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			} max=Math.max(max, Math.abs(a[j]-a[i])) max Math.max(max, Math.abs(a[j]-a[i])) Math.max Math max Math.abs(a[j]-a[i]) Math.abs Math a[j]-a[i] a[j] a j a[i] a i System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a= new int[3];
		for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		}
		int max=Integer.MIN_VALUE;
		for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		}
		System.out.println(max);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a= new int[3];
		for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		}
		int max=Integer.MIN_VALUE;
		for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		}
		System.out.println(max);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a= new int[3];
		for(int i=0;i<3;i++) {
			a[i]=scan.nextInt();
		}
		int max=Integer.MIN_VALUE;
		for(int i=0;i<3;i++) {
			for(int j=i+1;j<3;j++) {
				max=Math.max(max, Math.abs(a[j]-a[i]));
			}
		}
		System.out.println(max);
	}

}
