import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		List<String> tmp = new ArrayList<>();

		while (scanner.hasNext()) {
			tmp.add(scanner.next());
		}
		String[] input = tmp.toArray(new String[tmp.size()]);
		Arrays.sort(input);
		System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])));
	}

	private static int minus(String a, String b) {
		return Integer.parseInt(a) -  Integer.parseInt(b);
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		List<String> tmp = new ArrayList<>();

		while (scanner.hasNext()) {
			tmp.add(scanner.next());
		}
		String[] input = tmp.toArray(new String[tmp.size()]);
		Arrays.sort(input);
		System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])));
	}

	private static int minus(String a, String b) {
		return Integer.parseInt(a) -  Integer.parseInt(b);
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		List<String> tmp = new ArrayList<>();

		while (scanner.hasNext()) {
			tmp.add(scanner.next());
		}
		String[] input = tmp.toArray(new String[tmp.size()]);
		Arrays.sort(input);
		System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])));
	} main {
		Scanner scanner = new Scanner(System.in);

		List<String> tmp = new ArrayList<>();

		while (scanner.hasNext()) {
			tmp.add(scanner.next());
		}
		String[] input = tmp.toArray(new String[tmp.size()]);
		Arrays.sort(input);
		System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) List<String> tmp = new ArrayList<>(); tmp new ArrayList<>() while (scanner.hasNext()) {
			tmp.add(scanner.next());
		} scanner.hasNext() scanner.hasNext scanner {
			tmp.add(scanner.next());
		} tmp.add(scanner.next()) tmp.add tmp scanner.next() scanner.next scanner String[] input = tmp.toArray(new String[tmp.size()]); input tmp.toArray(new String[tmp.size()]) tmp.toArray tmp new String[tmp.size()] tmp.size() tmp.size tmp Arrays.sort(input) Arrays.sort Arrays input System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1]))) System.out.println System.out System System.out Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])) Math.abs Math minus(input[1], input[0]) + minus(input[2], input[1]) minus(input[1], input[0]) minus input[1] input 1 input[0] input 0 minus(input[2], input[1]) minus input[2] input 2 input[1] input 1 String[] args args private static int minus(String a, String b) {
		return Integer.parseInt(a) -  Integer.parseInt(b);
	} minus {
		return Integer.parseInt(a) -  Integer.parseInt(b);
	} return Integer.parseInt(a) -  Integer.parseInt(b); Integer.parseInt(a) -  Integer.parseInt(b) Integer.parseInt(a) Integer.parseInt Integer a Integer.parseInt(b) Integer.parseInt Integer b String a a String b b public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		List<String> tmp = new ArrayList<>();

		while (scanner.hasNext()) {
			tmp.add(scanner.next());
		}
		String[] input = tmp.toArray(new String[tmp.size()]);
		Arrays.sort(input);
		System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])));
	}

	private static int minus(String a, String b) {
		return Integer.parseInt(a) -  Integer.parseInt(b);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		List<String> tmp = new ArrayList<>();

		while (scanner.hasNext()) {
			tmp.add(scanner.next());
		}
		String[] input = tmp.toArray(new String[tmp.size()]);
		Arrays.sort(input);
		System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])));
	}

	private static int minus(String a, String b) {
		return Integer.parseInt(a) -  Integer.parseInt(b);
	}

} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		List<String> tmp = new ArrayList<>();

		while (scanner.hasNext()) {
			tmp.add(scanner.next());
		}
		String[] input = tmp.toArray(new String[tmp.size()]);
		Arrays.sort(input);
		System.out.println(Math.abs(minus(input[1], input[0]) + minus(input[2], input[1])));
	}

	private static int minus(String a, String b) {
		return Integer.parseInt(a) -  Integer.parseInt(b);
	}

}