import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String[] cd = vd.readLine().split(" ");
		vd.close();
		int[] lo = new int[cd.length];
		for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]);
		int max=0;
		int min=Integer.MAX_VALUE;
		for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		}
		System.out.println(max-min);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String[] cd = vd.readLine().split(" ");
		vd.close();
		int[] lo = new int[cd.length];
		for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]);
		int max=0;
		int min=Integer.MAX_VALUE;
		for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		}
		System.out.println(max-min);
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String[] cd = vd.readLine().split(" ");
		vd.close();
		int[] lo = new int[cd.length];
		for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]);
		int max=0;
		int min=Integer.MAX_VALUE;
		for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		}
		System.out.println(max-min);
	} main {
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String[] cd = vd.readLine().split(" ");
		vd.close();
		int[] lo = new int[cd.length];
		for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]);
		int max=0;
		int min=Integer.MAX_VALUE;
		for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		}
		System.out.println(max-min);
	} BufferedReader vd = new BufferedReader(new InputStreamReader(System.in)); vd new BufferedReader(new InputStreamReader(System.in)) String[] cd = vd.readLine().split(" "); cd vd.readLine().split(" ") vd.readLine().split vd.readLine() vd.readLine vd " " vd.close() vd.close vd int[] lo = new int[cd.length]; lo new int[cd.length] cd.length cd cd.length for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]); int i=0; int i=0; i 0 i<cd.length i cd.length cd cd.length i++ i++ i lo[i] = Integer.parseInt(cd[i]); lo[i] = Integer.parseInt(cd[i]) lo[i] lo i Integer.parseInt(cd[i]) Integer.parseInt Integer cd[i] cd i int max=0; max 0 int min=Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		} int i=0; int i=0; i 0 i<cd.length i cd.length cd cd.length ++i ++i i {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		} {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		} if(max<lo[i]) max=lo[i]; max<lo[i] max lo[i] lo i max=lo[i] max lo[i] lo i if(min>lo[i]) min=lo[i]; min>lo[i] min lo[i] lo i min=lo[i] min lo[i] lo i System.out.println(max-min) System.out.println System.out System System.out max-min max min String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String[] cd = vd.readLine().split(" ");
		vd.close();
		int[] lo = new int[cd.length];
		for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]);
		int max=0;
		int min=Integer.MAX_VALUE;
		for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		}
		System.out.println(max-min);
	}

} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String[] cd = vd.readLine().split(" ");
		vd.close();
		int[] lo = new int[cd.length];
		for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]);
		int max=0;
		int min=Integer.MAX_VALUE;
		for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		}
		System.out.println(max-min);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String[] cd = vd.readLine().split(" ");
		vd.close();
		int[] lo = new int[cd.length];
		for(int i=0; i<cd.length; i++) lo[i] = Integer.parseInt(cd[i]);
		int max=0;
		int min=Integer.MAX_VALUE;
		for(int i=0; i<cd.length;++i) {
			if(max<lo[i]) max=lo[i];
			if(min>lo[i]) min=lo[i];
		}
		System.out.println(max-min);
	}

}
