import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
		System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
		System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
		System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)));
	} main {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
		System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc c=sc.nextInt(); c sc.nextInt() sc.nextInt sc System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c))) System.out.println System.out System System.out Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)) Math.max(Math.max(a, b),Math.max(a, c)) Math.max Math Math.max(a, b) Math.max Math a b Math.max(a, c) Math.max Math a c Math.min(Math.min(a, b),Math.min(a, c)) Math.min Math Math.min(a, b) Math.min Math a b Math.min(a, c) Math.min Math a c String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
		System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
		System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
		System.out.println(Math.max(Math.max(a, b),Math.max(a, c)) - Math.min(Math.min(a, b),Math.min(a, c)));
	}
}