import java.io.*; 
import java.util.Scanner;

public class Main {
  
	public static void main(String[] args){
      	Scanner in = new Scanner(System.in);
		int Ph = in.nextInt();
      	int Qh = in.nextInt();
      	int Rh = in.nextInt();
      
      	System.out.println(minSumBetween(Ph,Qh,Rh));
      
	}
  
  	public static int minSumBetween(int a,int b,int c){
    	if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        }
    }
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main {
  
	public static void main(String[] args){
      	Scanner in = new Scanner(System.in);
		int Ph = in.nextInt();
      	int Qh = in.nextInt();
      	int Rh = in.nextInt();
      
      	System.out.println(minSumBetween(Ph,Qh,Rh));
      
	}
  
  	public static int minSumBetween(int a,int b,int c){
    	if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        }
    }
} Main public static void main(String[] args){
      	Scanner in = new Scanner(System.in);
		int Ph = in.nextInt();
      	int Qh = in.nextInt();
      	int Rh = in.nextInt();
      
      	System.out.println(minSumBetween(Ph,Qh,Rh));
      
	} main {
      	Scanner in = new Scanner(System.in);
		int Ph = in.nextInt();
      	int Qh = in.nextInt();
      	int Rh = in.nextInt();
      
      	System.out.println(minSumBetween(Ph,Qh,Rh));
      
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int Ph = in.nextInt(); Ph in.nextInt() in.nextInt in int Qh = in.nextInt(); Qh in.nextInt() in.nextInt in int Rh = in.nextInt(); Rh in.nextInt() in.nextInt in System.out.println(minSumBetween(Ph,Qh,Rh)) System.out.println System.out System System.out minSumBetween(Ph,Qh,Rh) minSumBetween Ph Qh Rh String[] args args public static int minSumBetween(int a,int b,int c){
    	if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        }
    } minSumBetween {
    	if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        }
    } if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        } a<b a b {
        	if(b<c) return a+b;
          	else return a+c;
        } if(b<c) return a+b;
          	else return a+c; b<c b c return a+b; a+b a b return a+c; a+c a c {
        	if(a<c) return b+a;
          	else return b+c;
        } if(a<c) return b+a;
          	else return b+c; a<c a c return b+a; b+a b a return b+c; b+c b c int a a int b b int c c public class Main {
  
	public static void main(String[] args){
      	Scanner in = new Scanner(System.in);
		int Ph = in.nextInt();
      	int Qh = in.nextInt();
      	int Rh = in.nextInt();
      
      	System.out.println(minSumBetween(Ph,Qh,Rh));
      
	}
  
  	public static int minSumBetween(int a,int b,int c){
    	if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        }
    }
} public class Main {
  
	public static void main(String[] args){
      	Scanner in = new Scanner(System.in);
		int Ph = in.nextInt();
      	int Qh = in.nextInt();
      	int Rh = in.nextInt();
      
      	System.out.println(minSumBetween(Ph,Qh,Rh));
      
	}
  
  	public static int minSumBetween(int a,int b,int c){
    	if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        }
    }
} Main
import java.io.*; 
import java.util.Scanner;

public class Main {
  
	public static void main(String[] args){
      	Scanner in = new Scanner(System.in);
		int Ph = in.nextInt();
      	int Qh = in.nextInt();
      	int Rh = in.nextInt();
      
      	System.out.println(minSumBetween(Ph,Qh,Rh));
      
	}
  
  	public static int minSumBetween(int a,int b,int c){
    	if(a<b){
        	if(b<c) return a+b;
          	else return a+c;
        }else{
        	if(a<c) return b+a;
          	else return b+c;
        }
    }
}