import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt();
    System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C));
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt();
    System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C));
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt();
    System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C));
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt();
    System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C));
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt() A sc.nextInt() sc.nextInt sc B = sc.nextInt() B sc.nextInt() sc.nextInt sc C = sc.nextInt(); C sc.nextInt() sc.nextInt sc System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C)) System.out.println System.out System System.out Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C) Math.max(Math.max(A, B), C) Math.max Math Math.max(A, B) Math.max Math A B C Math.min(Math.min(A, B), C) Math.min Math Math.min(A, B) Math.min Math A B C String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt();
    System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C));
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt();
    System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C));
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt();
    System.out.println(Math.max(Math.max(A, B), C) - Math.min(Math.min(A, B), C));
  }
}