import java.util.*;

 
class Main {
  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int input = scanner.nextInt();
    int input2 = scanner.nextInt();
    int input3 = scanner.nextInt();
    scanner.close();
    int a = input + input2;
    int b = input2 + input3;
    int c = input3 + input;
    int alpha = Math.min(a,b);
    int beta = Math.min(alpha,c);
    System.out.println(beta);
  }
} import java.util.*; util.* java class Main {
  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int input = scanner.nextInt();
    int input2 = scanner.nextInt();
    int input3 = scanner.nextInt();
    scanner.close();
    int a = input + input2;
    int b = input2 + input3;
    int c = input3 + input;
    int alpha = Math.min(a,b);
    int beta = Math.min(alpha,c);
    System.out.println(beta);
  }
} Main public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int input = scanner.nextInt();
    int input2 = scanner.nextInt();
    int input3 = scanner.nextInt();
    scanner.close();
    int a = input + input2;
    int b = input2 + input3;
    int c = input3 + input;
    int alpha = Math.min(a,b);
    int beta = Math.min(alpha,c);
    System.out.println(beta);
  } main {
    Scanner scanner = new Scanner(System.in);
    int input = scanner.nextInt();
    int input2 = scanner.nextInt();
    int input3 = scanner.nextInt();
    scanner.close();
    int a = input + input2;
    int b = input2 + input3;
    int c = input3 + input;
    int alpha = Math.min(a,b);
    int beta = Math.min(alpha,c);
    System.out.println(beta);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int input = scanner.nextInt(); input scanner.nextInt() scanner.nextInt scanner int input2 = scanner.nextInt(); input2 scanner.nextInt() scanner.nextInt scanner int input3 = scanner.nextInt(); input3 scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner int a = input + input2; a input + input2 input input2 int b = input2 + input3; b input2 + input3 input2 input3 int c = input3 + input; c input3 + input input3 input int alpha = Math.min(a,b); alpha Math.min(a,b) Math.min Math a b int beta = Math.min(alpha,c); beta Math.min(alpha,c) Math.min Math alpha c System.out.println(beta) System.out.println System.out System System.out beta String args[] args
import java.util.*;

 
class Main {
  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
    int input = scanner.nextInt();
    int input2 = scanner.nextInt();
    int input3 = scanner.nextInt();
    scanner.close();
    int a = input + input2;
    int b = input2 + input3;
    int c = input3 + input;
    int alpha = Math.min(a,b);
    int beta = Math.min(alpha,c);
    System.out.println(beta);
  }
}
