import java.util.Scanner;

public class Main{
	public static void main(String args[]) {
		Scanner scn =new Scanner(System.in);
		int n = scn.nextInt(), m = scn.nextInt(), o = scn.nextInt();
		int min = Math.min(Math.min(n,m),o);
		int max = Math.max(Math.max(n, m), o);
		System.out.println(max-min + "\n");
		scn.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String args[]) {
		Scanner scn =new Scanner(System.in);
		int n = scn.nextInt(), m = scn.nextInt(), o = scn.nextInt();
		int min = Math.min(Math.min(n,m),o);
		int max = Math.max(Math.max(n, m), o);
		System.out.println(max-min + "\n");
		scn.close();
	}
} Main public static void main(String args[]) {
		Scanner scn =new Scanner(System.in);
		int n = scn.nextInt(), m = scn.nextInt(), o = scn.nextInt();
		int min = Math.min(Math.min(n,m),o);
		int max = Math.max(Math.max(n, m), o);
		System.out.println(max-min + "\n");
		scn.close();
	} main {
		Scanner scn =new Scanner(System.in);
		int n = scn.nextInt(), m = scn.nextInt(), o = scn.nextInt();
		int min = Math.min(Math.min(n,m),o);
		int max = Math.max(Math.max(n, m), o);
		System.out.println(max-min + "\n");
		scn.close();
	} Scanner scn =new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt() n scn.nextInt() scn.nextInt scn m = scn.nextInt() m scn.nextInt() scn.nextInt scn o = scn.nextInt(); o scn.nextInt() scn.nextInt scn int min = Math.min(Math.min(n,m),o); min Math.min(Math.min(n,m),o) Math.min Math Math.min(n,m) Math.min Math n m o int max = Math.max(Math.max(n, m), o); max Math.max(Math.max(n, m), o) Math.max Math Math.max(n, m) Math.max Math n m o System.out.println(max-min + "\n") System.out.println System.out System System.out max-min + "\n" max-min max min "\n" scn.close() scn.close scn String args[] args public class Main{
	public static void main(String args[]) {
		Scanner scn =new Scanner(System.in);
		int n = scn.nextInt(), m = scn.nextInt(), o = scn.nextInt();
		int min = Math.min(Math.min(n,m),o);
		int max = Math.max(Math.max(n, m), o);
		System.out.println(max-min + "\n");
		scn.close();
	}
} public class Main{
	public static void main(String args[]) {
		Scanner scn =new Scanner(System.in);
		int n = scn.nextInt(), m = scn.nextInt(), o = scn.nextInt();
		int min = Math.min(Math.min(n,m),o);
		int max = Math.max(Math.max(n, m), o);
		System.out.println(max-min + "\n");
		scn.close();
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String args[]) {
		Scanner scn =new Scanner(System.in);
		int n = scn.nextInt(), m = scn.nextInt(), o = scn.nextInt();
		int min = Math.min(Math.min(n,m),o);
		int max = Math.max(Math.max(n, m), o);
		System.out.println(max-min + "\n");
		scn.close();
	}
}
