import java.util.*;

class Main{
	public static void main(String[] args){
    	Scanner scn = new Scanner(System.in);
      	int A = scn.nextInt();
      	int B = scn.nextInt();
      	int C = scn.nextInt();
      	int min = A + B + C - Math.max(A, Math.max(B, C));
      	System.out.println(min);
      	scn.close();
    }
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
    	Scanner scn = new Scanner(System.in);
      	int A = scn.nextInt();
      	int B = scn.nextInt();
      	int C = scn.nextInt();
      	int min = A + B + C - Math.max(A, Math.max(B, C));
      	System.out.println(min);
      	scn.close();
    }
} Main public static void main(String[] args){
    	Scanner scn = new Scanner(System.in);
      	int A = scn.nextInt();
      	int B = scn.nextInt();
      	int C = scn.nextInt();
      	int min = A + B + C - Math.max(A, Math.max(B, C));
      	System.out.println(min);
      	scn.close();
    } main {
    	Scanner scn = new Scanner(System.in);
      	int A = scn.nextInt();
      	int B = scn.nextInt();
      	int C = scn.nextInt();
      	int min = A + B + C - Math.max(A, Math.max(B, C));
      	System.out.println(min);
      	scn.close();
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int A = scn.nextInt(); A scn.nextInt() scn.nextInt scn int B = scn.nextInt(); B scn.nextInt() scn.nextInt scn int C = scn.nextInt(); C scn.nextInt() scn.nextInt scn int min = A + B + C - Math.max(A, Math.max(B, C)); min A + B + C - Math.max(A, Math.max(B, C)) A + B + C A + B + C A B C Math.max(A, Math.max(B, C)) Math.max Math A Math.max(B, C) Math.max Math B C System.out.println(min) System.out.println System.out System System.out min scn.close() scn.close scn String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
    	Scanner scn = new Scanner(System.in);
      	int A = scn.nextInt();
      	int B = scn.nextInt();
      	int C = scn.nextInt();
      	int min = A + B + C - Math.max(A, Math.max(B, C));
      	System.out.println(min);
      	scn.close();
    }
}