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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        }
        Collections.sort(list);
        int answer = 0;
        for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        }

        System.out.println(answer);
        sc.close();
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        }
        Collections.sort(list);
        int answer = 0;
        for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        }

        System.out.println(answer);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        }
        Collections.sort(list);
        int answer = 0;
        for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        }

        System.out.println(answer);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        }
        Collections.sort(list);
        int answer = 0;
        for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        }

        System.out.println(answer);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            list.add(Integer.parseInt(sc.next()));
        } {
            list.add(Integer.parseInt(sc.next()));
        } list.add(Integer.parseInt(sc.next())) list.add list Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Collections.sort(list) Collections.sort Collections list int answer = 0; answer 0 for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            answer += list.get(i);
        } {
            answer += list.get(i);
        } answer += list.get(i) answer list.get(i) list.get list i System.out.println(answer) System.out.println System.out System System.out answer sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        }
        Collections.sort(list);
        int answer = 0;
        for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        }

        System.out.println(answer);
        sc.close();
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        }
        Collections.sort(list);
        int answer = 0;
        for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        }

        System.out.println(answer);
        sc.close();
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(Integer.parseInt(sc.next()));
        }
        Collections.sort(list);
        int answer = 0;
        for (int i = 0; i < 2; i++) {
            answer += list.get(i);
        }

        System.out.println(answer);
        sc.close();
    }
}