import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =  new Scanner(System.in);
  int ab = sc.nextInt();
  int bc = sc.nextInt();
  int ca = sc.nextInt();
  int  abc= ab+bc;
  int  bca= bc+ca;
  int  cab= ca+ab;
  int min=0;
  if(abc<bca)min=abc;
  else min=bca;
  if(min>cab) min=cab;
  System.out.println(min);
}
} import java.util.*; util.* java public class Main{
public static void main(String[] args){
Scanner sc =  new Scanner(System.in);
  int ab = sc.nextInt();
  int bc = sc.nextInt();
  int ca = sc.nextInt();
  int  abc= ab+bc;
  int  bca= bc+ca;
  int  cab= ca+ab;
  int min=0;
  if(abc<bca)min=abc;
  else min=bca;
  if(min>cab) min=cab;
  System.out.println(min);
}
} Main public static void main(String[] args){
Scanner sc =  new Scanner(System.in);
  int ab = sc.nextInt();
  int bc = sc.nextInt();
  int ca = sc.nextInt();
  int  abc= ab+bc;
  int  bca= bc+ca;
  int  cab= ca+ab;
  int min=0;
  if(abc<bca)min=abc;
  else min=bca;
  if(min>cab) min=cab;
  System.out.println(min);
} main {
Scanner sc =  new Scanner(System.in);
  int ab = sc.nextInt();
  int bc = sc.nextInt();
  int ca = sc.nextInt();
  int  abc= ab+bc;
  int  bca= bc+ca;
  int  cab= ca+ab;
  int min=0;
  if(abc<bca)min=abc;
  else min=bca;
  if(min>cab) min=cab;
  System.out.println(min);
} Scanner sc =  new Scanner(System.in); sc new Scanner(System.in) int ab = sc.nextInt(); ab sc.nextInt() sc.nextInt sc int bc = sc.nextInt(); bc sc.nextInt() sc.nextInt sc int ca = sc.nextInt(); ca sc.nextInt() sc.nextInt sc int  abc= ab+bc; abc ab+bc ab bc int  bca= bc+ca; bca bc+ca bc ca int  cab= ca+ab; cab ca+ab ca ab int min=0; min 0 if(abc<bca)min=abc;
  else min=bca; abc<bca abc bca min=abc min abc min=bca min bca if(min>cab) min=cab; min>cab min cab min=cab min cab System.out.println(min) System.out.println 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 ab = sc.nextInt();
  int bc = sc.nextInt();
  int ca = sc.nextInt();
  int  abc= ab+bc;
  int  bca= bc+ca;
  int  cab= ca+ab;
  int min=0;
  if(abc<bca)min=abc;
  else min=bca;
  if(min>cab) min=cab;
  System.out.println(min);
}
} public class Main{
public static void main(String[] args){
Scanner sc =  new Scanner(System.in);
  int ab = sc.nextInt();
  int bc = sc.nextInt();
  int ca = sc.nextInt();
  int  abc= ab+bc;
  int  bca= bc+ca;
  int  cab= ca+ab;
  int min=0;
  if(abc<bca)min=abc;
  else min=bca;
  if(min>cab) min=cab;
  System.out.println(min);
}
} Main
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =  new Scanner(System.in);
  int ab = sc.nextInt();
  int bc = sc.nextInt();
  int ca = sc.nextInt();
  int  abc= ab+bc;
  int  bca= bc+ca;
  int  cab= ca+ab;
  int min=0;
  if(abc<bca)min=abc;
  else min=bca;
  if(min>cab) min=cab;
  System.out.println(min);
}
}