import java.util.Scanner;
import java.util.ArrayList;


public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int max = num1+num2;
        if(max > num1 + num3)   max = num1 + num3;
        if(max > num2 + num1)   max = num2 + num1;
        if(max > num2 + num3)   max = num2 + num3;
        if(max > num3 + num1)   max = num3 + num1;
        if(max > num3 + num2)   max = num3 + num2;

         
        System.out.println(max);
    }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int max = num1+num2;
        if(max > num1 + num3)   max = num1 + num3;
        if(max > num2 + num1)   max = num2 + num1;
        if(max > num2 + num3)   max = num2 + num3;
        if(max > num3 + num1)   max = num3 + num1;
        if(max > num3 + num2)   max = num3 + num2;

         
        System.out.println(max);
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int max = num1+num2;
        if(max > num1 + num3)   max = num1 + num3;
        if(max > num2 + num1)   max = num2 + num1;
        if(max > num2 + num3)   max = num2 + num3;
        if(max > num3 + num1)   max = num3 + num1;
        if(max > num3 + num2)   max = num3 + num2;

         
        System.out.println(max);
    } main {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int max = num1+num2;
        if(max > num1 + num3)   max = num1 + num3;
        if(max > num2 + num1)   max = num2 + num1;
        if(max > num2 + num3)   max = num2 + num3;
        if(max > num3 + num1)   max = num3 + num1;
        if(max > num3 + num2)   max = num3 + num2;

         
        System.out.println(max);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int num3 = scan.nextInt(); num3 scan.nextInt() scan.nextInt scan int max = num1+num2; max num1+num2 num1 num2 if(max > num1 + num3)   max = num1 + num3; max > num1 + num3 max num1 + num3 num1 num3 max = num1 + num3 max num1 + num3 num1 num3 if(max > num2 + num1)   max = num2 + num1; max > num2 + num1 max num2 + num1 num2 num1 max = num2 + num1 max num2 + num1 num2 num1 if(max > num2 + num3)   max = num2 + num3; max > num2 + num3 max num2 + num3 num2 num3 max = num2 + num3 max num2 + num3 num2 num3 if(max > num3 + num1)   max = num3 + num1; max > num3 + num1 max num3 + num1 num3 num1 max = num3 + num1 max num3 + num1 num3 num1 if(max > num3 + num2)   max = num3 + num2; max > num3 + num2 max num3 + num2 num3 num2 max = num3 + num2 max num3 + num2 num3 num2 System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int max = num1+num2;
        if(max > num1 + num3)   max = num1 + num3;
        if(max > num2 + num1)   max = num2 + num1;
        if(max > num2 + num3)   max = num2 + num3;
        if(max > num3 + num1)   max = num3 + num1;
        if(max > num3 + num2)   max = num3 + num2;

         
        System.out.println(max);
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int max = num1+num2;
        if(max > num1 + num3)   max = num1 + num3;
        if(max > num2 + num1)   max = num2 + num1;
        if(max > num2 + num3)   max = num2 + num3;
        if(max > num3 + num1)   max = num3 + num1;
        if(max > num3 + num2)   max = num3 + num2;

         
        System.out.println(max);
    }
} Main
import java.util.Scanner;
import java.util.ArrayList;


public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int max = num1+num2;
        if(max > num1 + num3)   max = num1 + num3;
        if(max > num2 + num1)   max = num2 + num1;
        if(max > num2 + num3)   max = num2 + num3;
        if(max > num3 + num1)   max = num3 + num1;
        if(max > num3 + num2)   max = num3 + num2;

         
        System.out.println(max);
    }
}