import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N1 = in.nextInt();
		int N2 = in.nextInt();
		int N3 =  in.nextInt();
		
		List<Integer> list = new ArrayList<Integer>();
		list.add(N1);
		if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		}
		if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		}
	
		System.out.println(list.get(2)-list.get(0));
	
		in.close();
		
	}
} import java.util.ArrayList; ArrayList 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 in = new java.util.Scanner(System.in);
		int N1 = in.nextInt();
		int N2 = in.nextInt();
		int N3 =  in.nextInt();
		
		List<Integer> list = new ArrayList<Integer>();
		list.add(N1);
		if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		}
		if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		}
	
		System.out.println(list.get(2)-list.get(0));
	
		in.close();
		
	}
} Main public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N1 = in.nextInt();
		int N2 = in.nextInt();
		int N3 =  in.nextInt();
		
		List<Integer> list = new ArrayList<Integer>();
		list.add(N1);
		if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		}
		if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		}
	
		System.out.println(list.get(2)-list.get(0));
	
		in.close();
		
	} main {
		Scanner in = new java.util.Scanner(System.in);
		int N1 = in.nextInt();
		int N2 = in.nextInt();
		int N3 =  in.nextInt();
		
		List<Integer> list = new ArrayList<Integer>();
		list.add(N1);
		if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		}
		if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		}
	
		System.out.println(list.get(2)-list.get(0));
	
		in.close();
		
	} Scanner in = new java.util.Scanner(System.in); in new java.util.Scanner(System.in) int N1 = in.nextInt(); N1 in.nextInt() in.nextInt in int N2 = in.nextInt(); N2 in.nextInt() in.nextInt in int N3 =  in.nextInt(); N3 in.nextInt() in.nextInt in List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() list.add(N1) list.add list N1 if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		} N1 < N2 N1 N2 {
			list.add(N2);
		} list.add(N2) list.add list N2 {
			list.add(0, N2);
		} list.add(0, N2) list.add list 0 N2 if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		} N3 < list.get(0) N3 list.get(0) list.get list 0 {
			list.add(0, N3);
		} list.add(0, N3) list.add list 0 N3 if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		} N3 < list.get(1) N3 list.get(1) list.get list 1 {
			list.add(1, N3);
		} list.add(1, N3) list.add list 1 N3 {
			list.add(N3);
		} list.add(N3) list.add list N3 System.out.println(list.get(2)-list.get(0)) System.out.println System.out System System.out list.get(2)-list.get(0) list.get(2) list.get list 2 list.get(0) list.get list 0 in.close() in.close in String[] args args public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N1 = in.nextInt();
		int N2 = in.nextInt();
		int N3 =  in.nextInt();
		
		List<Integer> list = new ArrayList<Integer>();
		list.add(N1);
		if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		}
		if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		}
	
		System.out.println(list.get(2)-list.get(0));
	
		in.close();
		
	}
} public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N1 = in.nextInt();
		int N2 = in.nextInt();
		int N3 =  in.nextInt();
		
		List<Integer> list = new ArrayList<Integer>();
		list.add(N1);
		if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		}
		if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		}
	
		System.out.println(list.get(2)-list.get(0));
	
		in.close();
		
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N1 = in.nextInt();
		int N2 = in.nextInt();
		int N3 =  in.nextInt();
		
		List<Integer> list = new ArrayList<Integer>();
		list.add(N1);
		if(N1 < N2) {
			list.add(N2);
		}else {
			list.add(0, N2);
		}
		if(N3 < list.get(0)) {
			list.add(0, N3);
		}else if(N3 < list.get(1)) {
			list.add(1, N3);
		}else {
			list.add(N3);
		}
	
		System.out.println(list.get(2)-list.get(0));
	
		in.close();
		
	}
}