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

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

		List<Integer> A = new ArrayList<Integer>();
		for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		}

		Collections.sort(A);

		System.out.println(A.get(2) - A.get(0));
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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 sc = new Scanner(System.in);

		List<Integer> A = new ArrayList<Integer>();
		for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		}

		Collections.sort(A);

		System.out.println(A.get(2) - A.get(0));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		List<Integer> A = new ArrayList<Integer>();
		for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		}

		Collections.sort(A);

		System.out.println(A.get(2) - A.get(0));
	} main {
		Scanner sc = new Scanner(System.in);

		List<Integer> A = new ArrayList<Integer>();
		for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		}

		Collections.sort(A);

		System.out.println(A.get(2) - A.get(0));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> A = new ArrayList<Integer>(); A new ArrayList<Integer>() for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			A.add(Integer.parseInt(sc.next()));
		} {
			A.add(Integer.parseInt(sc.next()));
		} A.add(Integer.parseInt(sc.next())) A.add A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Collections.sort(A) Collections.sort Collections A System.out.println(A.get(2) - A.get(0)) System.out.println System.out System System.out A.get(2) - A.get(0) A.get(2) A.get A 2 A.get(0) A.get A 0 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		List<Integer> A = new ArrayList<Integer>();
		for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		}

		Collections.sort(A);

		System.out.println(A.get(2) - A.get(0));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		List<Integer> A = new ArrayList<Integer>();
		for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		}

		Collections.sort(A);

		System.out.println(A.get(2) - A.get(0));
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

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

		List<Integer> A = new ArrayList<Integer>();
		for(int i=0; i<3; i++){
			A.add(Integer.parseInt(sc.next()));
		}

		Collections.sort(A);

		System.out.println(A.get(2) - A.get(0));
	}
}
