import java.util.Scanner;

public class Main {

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

        int[] cost = new int[3];

        cost[0] = sc.nextInt();
        cost[1] = sc.nextInt();
        cost[2] = sc.nextInt();

        int min = Integer.MAX_VALUE;

        for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        }

        System.out.println(min);
    }

} import java.util.Scanner; Scanner java.util public class Main {

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

        int[] cost = new int[3];

        cost[0] = sc.nextInt();
        cost[1] = sc.nextInt();
        cost[2] = sc.nextInt();

        int min = Integer.MAX_VALUE;

        for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        }

        System.out.println(min);
    }

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

        int[] cost = new int[3];

        cost[0] = sc.nextInt();
        cost[1] = sc.nextInt();
        cost[2] = sc.nextInt();

        int min = Integer.MAX_VALUE;

        for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        }

        System.out.println(min);
    } main {
        Scanner sc = new Scanner(System.in);

        int[] cost = new int[3];

        cost[0] = sc.nextInt();
        cost[1] = sc.nextInt();
        cost[2] = sc.nextInt();

        int min = Integer.MAX_VALUE;

        for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        }

        System.out.println(min);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] cost = new int[3]; cost new int[3] 3 cost[0] = sc.nextInt() cost[0] cost 0 sc.nextInt() sc.nextInt sc cost[1] = sc.nextInt() cost[1] cost 1 sc.nextInt() sc.nextInt sc cost[2] = sc.nextInt() cost[2] cost 2 sc.nextInt() sc.nextInt sc int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        } {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        } for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            } int j = i+1; int j = i+1; j i+1 i 1 j < 3 j 3 j++ j++ j {
                min = Math.min(min, cost[i] + cost[j]);
            } {
                min = Math.min(min, cost[i] + cost[j]);
            } min = Math.min(min, cost[i] + cost[j]) min Math.min(min, cost[i] + cost[j]) Math.min Math min cost[i] + cost[j] cost[i] cost i cost[j] cost j System.out.println(min) System.out.println System.out System System.out min String[] args args public class Main {

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

        int[] cost = new int[3];

        cost[0] = sc.nextInt();
        cost[1] = sc.nextInt();
        cost[2] = sc.nextInt();

        int min = Integer.MAX_VALUE;

        for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        }

        System.out.println(min);
    }

} public class Main {

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

        int[] cost = new int[3];

        cost[0] = sc.nextInt();
        cost[1] = sc.nextInt();
        cost[2] = sc.nextInt();

        int min = Integer.MAX_VALUE;

        for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        }

        System.out.println(min);
    }

} Main
import java.util.Scanner;

public class Main {

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

        int[] cost = new int[3];

        cost[0] = sc.nextInt();
        cost[1] = sc.nextInt();
        cost[2] = sc.nextInt();

        int min = Integer.MAX_VALUE;

        for (int i = 0; i < 2; i++) {
            for (int j = i+1; j < 3; j++) {
                min = Math.min(min, cost[i] + cost[j]);
            }
        }

        System.out.println(min);
    }

}