import java.util.*;
import java.io.*;

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

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