import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    int ab = a + b;
    int bc = b + c;
    int ca = c + a;
    
    if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    int ab = a + b;
    int bc = b + c;
    int ca = c + a;
    
    if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    int ab = a + b;
    int bc = b + c;
    int ca = c + a;
    
    if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    int ab = a + b;
    int bc = b + c;
    int ca = c + a;
    
    if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int ab = a + b; ab a + b a b int bc = b + c; bc b + c b c int ca = c + a; ca c + a c a if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    } (ab <= bc) && (ab <= ca) (ab <= bc) ab bc (ab <= ca) ab ca {
      System.out.println(ab);
    } System.out.println(ab) System.out.println System.out System System.out ab if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    } (bc <= ab) && (bc <= ca) (bc <= ab) bc ab (bc <= ca) bc ca {
      System.out.println(bc);
    } System.out.println(bc) System.out.println System.out System System.out bc {
      System.out.println(ca);
    } System.out.println(ca) System.out.println System.out System System.out ca String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    int ab = a + b;
    int bc = b + c;
    int ca = c + a;
    
    if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    }
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    int ab = a + b;
    int bc = b + c;
    int ca = c + a;
    
    if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    }
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    int ab = a + b;
    int bc = b + c;
    int ca = c + a;
    
    if ((ab <= bc) && (ab <= ca)) {
      System.out.println(ab);
    } else if ((bc <= ab) && (bc <= ca)) {
      System.out.println(bc);
    } else {
      System.out.println(ca);
    }
  }
}