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);
		String[] line = sc.nextLine().split(" ");
		ArrayList<Integer> distantList = new ArrayList();
		for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		}
		Collections.sort(distantList);
		System.out.println(distantList.get(0) + distantList.get(1));
		
	}
}
	
	 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);
		String[] line = sc.nextLine().split(" ");
		ArrayList<Integer> distantList = new ArrayList();
		for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		}
		Collections.sort(distantList);
		System.out.println(distantList.get(0) + distantList.get(1));
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		ArrayList<Integer> distantList = new ArrayList();
		for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		}
		Collections.sort(distantList);
		System.out.println(distantList.get(0) + distantList.get(1));
		
	} main {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		ArrayList<Integer> distantList = new ArrayList();
		for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		}
		Collections.sort(distantList);
		System.out.println(distantList.get(0) + distantList.get(1));
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " ArrayList<Integer> distantList = new ArrayList(); distantList new ArrayList() for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		} int i = 0; int i = 0; i 0 i<line.length i line.length line line.length i++ i++ i {
			distantList.add(Integer.parseInt(line[i]));
		} {
			distantList.add(Integer.parseInt(line[i]));
		} distantList.add(Integer.parseInt(line[i])) distantList.add distantList Integer.parseInt(line[i]) Integer.parseInt Integer line[i] line i Collections.sort(distantList) Collections.sort Collections distantList System.out.println(distantList.get(0) + distantList.get(1)) System.out.println System.out System System.out distantList.get(0) + distantList.get(1) distantList.get(0) distantList.get distantList 0 distantList.get(1) distantList.get distantList 1 String[] args args public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		ArrayList<Integer> distantList = new ArrayList();
		for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		}
		Collections.sort(distantList);
		System.out.println(distantList.get(0) + distantList.get(1));
		
	}
} public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		ArrayList<Integer> distantList = new ArrayList();
		for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		}
		Collections.sort(distantList);
		System.out.println(distantList.get(0) + distantList.get(1));
		
	}
} 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);
		String[] line = sc.nextLine().split(" ");
		ArrayList<Integer> distantList = new ArrayList();
		for(int i = 0;i<line.length;i++) {
			distantList.add(Integer.parseInt(line[i]));
		}
		Collections.sort(distantList);
		System.out.println(distantList.get(0) + distantList.get(1));
		
	}
}
	
	