import java.util.*;
import java.util.stream.*;

class Main{
  static int sum(int[] arr){
    int n = IntStream.of(arr).sum();
    int min = Integer.MAX_VALUE;
    for(int i:arr){
      if(n-i<min){
        min = n-i;
      }
    }
    return min;
  }
  public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int[] arr = new int[3];
    	for(int i=0;i<3;i++){
          arr[i] = scan.nextInt();
        }
    System.out.println(sum(arr));
  }} import java.util.*; util.* java import java.util.stream.*; stream.* java.util class Main{
  static int sum(int[] arr){
    int n = IntStream.of(arr).sum();
    int min = Integer.MAX_VALUE;
    for(int i:arr){
      if(n-i<min){
        min = n-i;
      }
    }
    return min;
  }
  public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int[] arr = new int[3];
    	for(int i=0;i<3;i++){
          arr[i] = scan.nextInt();
        }
    System.out.println(sum(arr));
  }} Main static int sum(int[] arr){
    int n = IntStream.of(arr).sum();
    int min = Integer.MAX_VALUE;
    for(int i:arr){
      if(n-i<min){
        min = n-i;
      }
    }
    return min;
  } sum {
    int n = IntStream.of(arr).sum();
    int min = Integer.MAX_VALUE;
    for(int i:arr){
      if(n-i<min){
        min = n-i;
      }
    }
    return min;
  } int n = IntStream.of(arr).sum(); n IntStream.of(arr).sum() IntStream.of(arr).sum IntStream.of(arr) IntStream.of IntStream arr int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i:arr){
      if(n-i<min){
        min = n-i;
      }
    } int i arr {
      if(n-i<min){
        min = n-i;
      }
    } {
      if(n-i<min){
        min = n-i;
      }
    } if(n-i<min){
        min = n-i;
      } n-i<min n-i n i min {
        min = n-i;
      } min = n-i min n-i n i return min; min int[] arr arr public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int[] arr = new int[3];
    	for(int i=0;i<3;i++){
          arr[i] = scan.nextInt();
        }
    System.out.println(sum(arr));
  } main {
    	Scanner scan = new Scanner(System.in);
    	int[] arr = new int[3];
    	for(int i=0;i<3;i++){
          arr[i] = scan.nextInt();
        }
    System.out.println(sum(arr));
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] arr = new int[3]; arr new int[3] 3 for(int i=0;i<3;i++){
          arr[i] = scan.nextInt();
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
          arr[i] = scan.nextInt();
        } {
          arr[i] = scan.nextInt();
        } arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan System.out.println(sum(arr)) System.out.println System.out System System.out sum(arr) sum arr String[] args args
import java.util.*;
import java.util.stream.*;

class Main{
  static int sum(int[] arr){
    int n = IntStream.of(arr).sum();
    int min = Integer.MAX_VALUE;
    for(int i:arr){
      if(n-i<min){
        min = n-i;
      }
    }
    return min;
  }
  public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int[] arr = new int[3];
    	for(int i=0;i<3;i++){
          arr[i] = scan.nextInt();
        }
    System.out.println(sum(arr));
  }}