import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int[] dis = new int[3];

        for(int i=0; i<3; i++) {
            dis[i] = scan.nextInt();
        }



        int[] sum = {0, 0, 0};


        sum[0] = dis[0] + dis[1];
        sum[1] = dis[0] + dis[2];
        sum[2] = dis[1] + dis[2];

        Arrays.sort(sum);

        System.out.println(sum[0]);
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int[] dis = new int[3];

        for(int i=0; i<3; i++) {
            dis[i] = scan.nextInt();
        }



        int[] sum = {0, 0, 0};


        sum[0] = dis[0] + dis[1];
        sum[1] = dis[0] + dis[2];
        sum[2] = dis[1] + dis[2];

        Arrays.sort(sum);

        System.out.println(sum[0]);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int[] dis = new int[3];

        for(int i=0; i<3; i++) {
            dis[i] = scan.nextInt();
        }



        int[] sum = {0, 0, 0};


        sum[0] = dis[0] + dis[1];
        sum[1] = dis[0] + dis[2];
        sum[2] = dis[1] + dis[2];

        Arrays.sort(sum);

        System.out.println(sum[0]);
    } main {
        Scanner scan = new Scanner(System.in);

        int[] dis = new int[3];

        for(int i=0; i<3; i++) {
            dis[i] = scan.nextInt();
        }



        int[] sum = {0, 0, 0};


        sum[0] = dis[0] + dis[1];
        sum[1] = dis[0] + dis[2];
        sum[2] = dis[1] + dis[2];

        Arrays.sort(sum);

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

        int[] dis = new int[3];

        for(int i=0; i<3; i++) {
            dis[i] = scan.nextInt();
        }



        int[] sum = {0, 0, 0};


        sum[0] = dis[0] + dis[1];
        sum[1] = dis[0] + dis[2];
        sum[2] = dis[1] + dis[2];

        Arrays.sort(sum);

        System.out.println(sum[0]);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int[] dis = new int[3];

        for(int i=0; i<3; i++) {
            dis[i] = scan.nextInt();
        }



        int[] sum = {0, 0, 0};


        sum[0] = dis[0] + dis[1];
        sum[1] = dis[0] + dis[2];
        sum[2] = dis[1] + dis[2];

        Arrays.sort(sum);

        System.out.println(sum[0]);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int[] dis = new int[3];

        for(int i=0; i<3; i++) {
            dis[i] = scan.nextInt();
        }



        int[] sum = {0, 0, 0};


        sum[0] = dis[0] + dis[1];
        sum[1] = dis[0] + dis[2];
        sum[2] = dis[1] + dis[2];

        Arrays.sort(sum);

        System.out.println(sum[0]);
    }
}
