import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws java.lang.Exception {
		Scanner scanner = new Scanner(System.in);
	    String input = scanner.nextLine();
	    String[] inputArray = input.split(" ");
	    int abRange = Integer.parseInt(inputArray[0]);
	    int bcRange = Integer.parseInt(inputArray[1]);
	    int caRange = Integer.parseInt(inputArray[2]);
	    int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange));
	    System.out.println(shortRange);
	    scanner.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws java.lang.Exception {
		Scanner scanner = new Scanner(System.in);
	    String input = scanner.nextLine();
	    String[] inputArray = input.split(" ");
	    int abRange = Integer.parseInt(inputArray[0]);
	    int bcRange = Integer.parseInt(inputArray[1]);
	    int caRange = Integer.parseInt(inputArray[2]);
	    int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange));
	    System.out.println(shortRange);
	    scanner.close();
	}
} Main public static void main(String[] args) throws java.lang.Exception {
		Scanner scanner = new Scanner(System.in);
	    String input = scanner.nextLine();
	    String[] inputArray = input.split(" ");
	    int abRange = Integer.parseInt(inputArray[0]);
	    int bcRange = Integer.parseInt(inputArray[1]);
	    int caRange = Integer.parseInt(inputArray[2]);
	    int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange));
	    System.out.println(shortRange);
	    scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
	    String input = scanner.nextLine();
	    String[] inputArray = input.split(" ");
	    int abRange = Integer.parseInt(inputArray[0]);
	    int bcRange = Integer.parseInt(inputArray[1]);
	    int caRange = Integer.parseInt(inputArray[2]);
	    int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange));
	    System.out.println(shortRange);
	    scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input = scanner.nextLine(); input scanner.nextLine() scanner.nextLine scanner String[] inputArray = input.split(" "); inputArray input.split(" ") input.split input " " int abRange = Integer.parseInt(inputArray[0]); abRange Integer.parseInt(inputArray[0]) Integer.parseInt Integer inputArray[0] inputArray 0 int bcRange = Integer.parseInt(inputArray[1]); bcRange Integer.parseInt(inputArray[1]) Integer.parseInt Integer inputArray[1] inputArray 1 int caRange = Integer.parseInt(inputArray[2]); caRange Integer.parseInt(inputArray[2]) Integer.parseInt Integer inputArray[2] inputArray 2 int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange)); shortRange Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange)) Math.min Math caRange + abRange caRange abRange Math.min(abRange+bcRange, bcRange + caRange) Math.min Math abRange+bcRange abRange bcRange bcRange + caRange bcRange caRange System.out.println(shortRange) System.out.println System.out System System.out shortRange scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) throws java.lang.Exception {
		Scanner scanner = new Scanner(System.in);
	    String input = scanner.nextLine();
	    String[] inputArray = input.split(" ");
	    int abRange = Integer.parseInt(inputArray[0]);
	    int bcRange = Integer.parseInt(inputArray[1]);
	    int caRange = Integer.parseInt(inputArray[2]);
	    int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange));
	    System.out.println(shortRange);
	    scanner.close();
	}
} public class Main {

	public static void main(String[] args) throws java.lang.Exception {
		Scanner scanner = new Scanner(System.in);
	    String input = scanner.nextLine();
	    String[] inputArray = input.split(" ");
	    int abRange = Integer.parseInt(inputArray[0]);
	    int bcRange = Integer.parseInt(inputArray[1]);
	    int caRange = Integer.parseInt(inputArray[2]);
	    int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange));
	    System.out.println(shortRange);
	    scanner.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws java.lang.Exception {
		Scanner scanner = new Scanner(System.in);
	    String input = scanner.nextLine();
	    String[] inputArray = input.split(" ");
	    int abRange = Integer.parseInt(inputArray[0]);
	    int bcRange = Integer.parseInt(inputArray[1]);
	    int caRange = Integer.parseInt(inputArray[2]);
	    int shortRange = Math.min(caRange + abRange, Math.min(abRange+bcRange, bcRange + caRange));
	    System.out.println(shortRange);
	    scanner.close();
	}
}
