import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int i,j,min;
    int[] a = new int[3];

    for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    }
    
    min = 99999;

    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    }
    System.out.print(min);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int i,j,min;
    int[] a = new int[3];

    for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    }
    
    min = 99999;

    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    }
    System.out.print(min);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int i,j,min;
    int[] a = new int[3];

    for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    }
    
    min = 99999;

    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    }
    System.out.print(min);
  } main {
    Scanner sc = new Scanner(System.in);
    int i,j,min;
    int[] a = new int[3];

    for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    }
    
    min = 99999;

    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    }
    System.out.print(min);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i i j j min; min int[] a = new int[3]; a new int[3] 3 for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    } i=0; i=0 i 0 i<3 i 3 i++ i++ i {
      a[i] = sc.nextInt();    
    } {
      a[i] = sc.nextInt();    
    } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc min = 99999 min 99999 for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    } i=0; i=0 i 0 i<3 i 3 i++ i++ i {
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    } {
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    } for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      } j=0; j=0 j 0 j<3 j 3 j++ j++ j {
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      } {
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      } if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        } i != j i j {
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        } if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          } min>a[i]+a[j] min a[i]+a[j] a[i] a i a[j] a j {
            min = a[i]+a[j];
          
          } min = a[i]+a[j] min a[i]+a[j] a[i] a i a[j] a j System.out.print(min) System.out.print System.out System System.out min String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int i,j,min;
    int[] a = new int[3];

    for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    }
    
    min = 99999;

    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    }
    System.out.print(min);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int i,j,min;
    int[] a = new int[3];

    for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    }
    
    min = 99999;

    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    }
    System.out.print(min);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int i,j,min;
    int[] a = new int[3];

    for(i=0;i<3;i++){
      a[i] = sc.nextInt();    
    }
    
    min = 99999;

    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(i != j){
          if(min>a[i]+a[j]){
            min = a[i]+a[j];
          
          }
        }
      }
    }
    System.out.print(min);
  }
}