import java.util.*; 

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();
		
    
 	if((a+b)<=(b+c)&&(a+b)<=(c+a)){
    		System.out.println(a+b);
    	}else if((b+c)<=(c+a)&&(b+c)<=(a+b)){
     		System.out.println(b+c);
   	 }else{

    	System.out.println(c+a);
    }
    }
} import java.util.*; util.* java 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();
		
    
 	if((a+b)<=(b+c)&&(a+b)<=(c+a)){
    		System.out.println(a+b);
    	}else if((b+c)<=(c+a)&&(b+c)<=(a+b)){
     		System.out.println(b+c);
   	 }else{

    	System.out.println(c+a);
    }
    }
} 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();
		
    
 	if((a+b)<=(b+c)&&(a+b)<=(c+a)){
    		System.out.println(a+b);
    	}else if((b+c)<=(c+a)&&(b+c)<=(a+b)){
     		System.out.println(b+c);
   	 }else{

    	System.out.println(c+a);
    }
    } main {
	Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
		int c=sc.nextInt();
		
    
 	if((a+b)<=(b+c)&&(a+b)<=(c+a)){
    		System.out.println(a+b);
    	}else if((b+c)<=(c+a)&&(b+c)<=(a+b)){
     		System.out.println(b+c);
   	 }else{

    	System.out.println(c+a);
    }
    } 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 if((a+b)<=(b+c)&&(a+b)<=(c+a)){
    		System.out.println(a+b);
    	}else if((b+c)<=(c+a)&&(b+c)<=(a+b)){
     		System.out.println(b+c);
   	 }else{

    	System.out.println(c+a);
    } (a+b)<=(b+c)&&(a+b)<=(c+a) (a+b)<=(b+c) (a+b) a b (b+c) b c (a+b)<=(c+a) (a+b) a b (c+a) c a {
    		System.out.println(a+b);
    	} System.out.println(a+b) System.out.println System.out System System.out a+b a b if((b+c)<=(c+a)&&(b+c)<=(a+b)){
     		System.out.println(b+c);
   	 }else{

    	System.out.println(c+a);
    } (b+c)<=(c+a)&&(b+c)<=(a+b) (b+c)<=(c+a) (b+c) b c (c+a) c a (b+c)<=(a+b) (b+c) b c (a+b) a b {
     		System.out.println(b+c);
   	 } System.out.println(b+c) System.out.println System.out System System.out b+c b c {

    	System.out.println(c+a);
    } System.out.println(c+a) System.out.println System.out System System.out c+a c a String[] args args
import java.util.*; 

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();
		
    
 	if((a+b)<=(b+c)&&(a+b)<=(c+a)){
    		System.out.println(a+b);
    	}else if((b+c)<=(c+a)&&(b+c)<=(a+b)){
     		System.out.println(b+c);
   	 }else{

    	System.out.println(c+a);
    }
    }
}