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


public class Main {
    
    public static void main(String[] args) {
        
        Scanner entrada=new Scanner(System.in);
        
      
        int x[]=new int[3];
        int x2[]=new int[3];
        for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        }
        
        for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        }
        x2[2]=x[0]+x[2];
        Arrays.sort(x2);
        System.out.println(x2[0]);
    }
    
} import java.util.Scanner; Scanner java.util import java.util.*; util.* java public class Main {
    
    public static void main(String[] args) {
        
        Scanner entrada=new Scanner(System.in);
        
      
        int x[]=new int[3];
        int x2[]=new int[3];
        for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        }
        
        for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        }
        x2[2]=x[0]+x[2];
        Arrays.sort(x2);
        System.out.println(x2[0]);
    }
    
} Main public static void main(String[] args) {
        
        Scanner entrada=new Scanner(System.in);
        
      
        int x[]=new int[3];
        int x2[]=new int[3];
        for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        }
        
        for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        }
        x2[2]=x[0]+x[2];
        Arrays.sort(x2);
        System.out.println(x2[0]);
    } main {
        
        Scanner entrada=new Scanner(System.in);
        
      
        int x[]=new int[3];
        int x2[]=new int[3];
        for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        }
        
        for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        }
        x2[2]=x[0]+x[2];
        Arrays.sort(x2);
        System.out.println(x2[0]);
    } Scanner entrada=new Scanner(System.in); entrada new Scanner(System.in) int x[]=new int[3]; x new int[3] 3 int x2[]=new int[3]; x2 new int[3] 3 for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            x[i]=entrada.nextInt();
        } {
            x[i]=entrada.nextInt();
        } x[i]=entrada.nextInt() x[i] x i entrada.nextInt() entrada.nextInt entrada for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            x2[i]=x[i]+x[i+1];
        } {
            x2[i]=x[i]+x[i+1];
        } x2[i]=x[i]+x[i+1] x2[i] x2 i x[i]+x[i+1] x[i] x i x[i+1] x i+1 i 1 x2[2]=x[0]+x[2] x2[2] x2 2 x[0]+x[2] x[0] x 0 x[2] x 2 Arrays.sort(x2) Arrays.sort Arrays x2 System.out.println(x2[0]) System.out.println System.out System System.out x2[0] x2 0 String[] args args public class Main {
    
    public static void main(String[] args) {
        
        Scanner entrada=new Scanner(System.in);
        
      
        int x[]=new int[3];
        int x2[]=new int[3];
        for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        }
        
        for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        }
        x2[2]=x[0]+x[2];
        Arrays.sort(x2);
        System.out.println(x2[0]);
    }
    
} public class Main {
    
    public static void main(String[] args) {
        
        Scanner entrada=new Scanner(System.in);
        
      
        int x[]=new int[3];
        int x2[]=new int[3];
        for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        }
        
        for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        }
        x2[2]=x[0]+x[2];
        Arrays.sort(x2);
        System.out.println(x2[0]);
    }
    
} Main

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


public class Main {
    
    public static void main(String[] args) {
        
        Scanner entrada=new Scanner(System.in);
        
      
        int x[]=new int[3];
        int x2[]=new int[3];
        for (int i = 0; i < 3; i++) {
            x[i]=entrada.nextInt();
        }
        
        for (int i = 0; i < 2; i++) {
            x2[i]=x[i]+x[i+1];
        }
        x2[2]=x[0]+x[2];
        Arrays.sort(x2);
        System.out.println(x2[0]);
    }
    
}