import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        List<Integer> nums = new ArrayList<Integer>();
        for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        }
        int a1=Collections.min(nums);
        nums.remove(nums.indexOf(a1));
        int a2=Collections.min(nums);
        System.out.println(a1+a2);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        List<Integer> nums = new ArrayList<Integer>();
        for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        }
        int a1=Collections.min(nums);
        nums.remove(nums.indexOf(a1));
        int a2=Collections.min(nums);
        System.out.println(a1+a2);
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        List<Integer> nums = new ArrayList<Integer>();
        for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        }
        int a1=Collections.min(nums);
        nums.remove(nums.indexOf(a1));
        int a2=Collections.min(nums);
        System.out.println(a1+a2);
    } main {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        List<Integer> nums = new ArrayList<Integer>();
        for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        }
        int a1=Collections.min(nums);
        nums.remove(nums.indexOf(a1));
        int a2=Collections.min(nums);
        System.out.println(a1+a2);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) String[] in = s.nextLine().split(" "); in s.nextLine().split(" ") s.nextLine().split s.nextLine() s.nextLine s " " List<Integer> nums = new ArrayList<Integer>(); nums new ArrayList<Integer>() for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            nums.add(Integer.parseInt(in[i]));
        } {
            nums.add(Integer.parseInt(in[i]));
        } nums.add(Integer.parseInt(in[i])) nums.add nums Integer.parseInt(in[i]) Integer.parseInt Integer in[i] in i int a1=Collections.min(nums); a1 Collections.min(nums) Collections.min Collections nums nums.remove(nums.indexOf(a1)) nums.remove nums nums.indexOf(a1) nums.indexOf nums a1 int a2=Collections.min(nums); a2 Collections.min(nums) Collections.min Collections nums System.out.println(a1+a2) System.out.println System.out System System.out a1+a2 a1 a2 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        List<Integer> nums = new ArrayList<Integer>();
        for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        }
        int a1=Collections.min(nums);
        nums.remove(nums.indexOf(a1));
        int a2=Collections.min(nums);
        System.out.println(a1+a2);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        List<Integer> nums = new ArrayList<Integer>();
        for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        }
        int a1=Collections.min(nums);
        nums.remove(nums.indexOf(a1));
        int a2=Collections.min(nums);
        System.out.println(a1+a2);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        List<Integer> nums = new ArrayList<Integer>();
        for(int i=0;i<3;i++){
            nums.add(Integer.parseInt(in[i]));
        }
        int a1=Collections.min(nums);
        nums.remove(nums.indexOf(a1));
        int a2=Collections.min(nums);
        System.out.println(a1+a2);
    }
}