import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int PortA = sc.nextInt();
    int PortB = sc.nextInt();
    int PortC = sc.nextInt();
    int Time[]= new int[6];
    
    Time[0]=PortA+PortB;
    Time[1]=PortC+PortB;
    Time[2]=PortA+PortC;
    Time[3]=PortB+PortC;
    Time[4]=PortC+PortA;
    Time[5]=PortB+PortA;
   

	int max = Time[0];
	int min = Time[1];
for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
}


System.out.println(min); 
  }
}
 import java.util.*; util.* java public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int PortA = sc.nextInt();
    int PortB = sc.nextInt();
    int PortC = sc.nextInt();
    int Time[]= new int[6];
    
    Time[0]=PortA+PortB;
    Time[1]=PortC+PortB;
    Time[2]=PortA+PortC;
    Time[3]=PortB+PortC;
    Time[4]=PortC+PortA;
    Time[5]=PortB+PortA;
   

	int max = Time[0];
	int min = Time[1];
for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
}


System.out.println(min); 
  }
} Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int PortA = sc.nextInt();
    int PortB = sc.nextInt();
    int PortC = sc.nextInt();
    int Time[]= new int[6];
    
    Time[0]=PortA+PortB;
    Time[1]=PortC+PortB;
    Time[2]=PortA+PortC;
    Time[3]=PortB+PortC;
    Time[4]=PortC+PortA;
    Time[5]=PortB+PortA;
   

	int max = Time[0];
	int min = Time[1];
for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
}


System.out.println(min); 
  } main {
    Scanner sc = new Scanner(System.in);
    int PortA = sc.nextInt();
    int PortB = sc.nextInt();
    int PortC = sc.nextInt();
    int Time[]= new int[6];
    
    Time[0]=PortA+PortB;
    Time[1]=PortC+PortB;
    Time[2]=PortA+PortC;
    Time[3]=PortB+PortC;
    Time[4]=PortC+PortA;
    Time[5]=PortB+PortA;
   

	int max = Time[0];
	int min = Time[1];
for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
}


System.out.println(min); 
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int PortA = sc.nextInt(); PortA sc.nextInt() sc.nextInt sc int PortB = sc.nextInt(); PortB sc.nextInt() sc.nextInt sc int PortC = sc.nextInt(); PortC sc.nextInt() sc.nextInt sc int Time[]= new int[6]; Time new int[6] 6 Time[0]=PortA+PortB Time[0] Time 0 PortA+PortB PortA PortB Time[1]=PortC+PortB Time[1] Time 1 PortC+PortB PortC PortB Time[2]=PortA+PortC Time[2] Time 2 PortA+PortC PortA PortC Time[3]=PortB+PortC Time[3] Time 3 PortB+PortC PortB PortC Time[4]=PortC+PortA Time[4] Time 4 PortC+PortA PortC PortA Time[5]=PortB+PortA Time[5] Time 5 PortB+PortA PortB PortA int max = Time[0]; max Time[0] Time 0 int min = Time[1]; min Time[1] Time 1 for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
} int i = 1; int i = 1; i 1 i < Time.length i Time.length Time Time.length i++ i++ i {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
} {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
} int v = Time[i]; v Time[i] Time i if (v > max) {
        max = v;
    } v > max v max {
        max = v;
    } max = v max v if (v < min) {
        min = v;
    } v < min v min {
        min = v;
    } min = v min v System.out.println(min) System.out.println System.out System System.out min String[] args args public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int PortA = sc.nextInt();
    int PortB = sc.nextInt();
    int PortC = sc.nextInt();
    int Time[]= new int[6];
    
    Time[0]=PortA+PortB;
    Time[1]=PortC+PortB;
    Time[2]=PortA+PortC;
    Time[3]=PortB+PortC;
    Time[4]=PortC+PortA;
    Time[5]=PortB+PortA;
   

	int max = Time[0];
	int min = Time[1];
for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
}


System.out.println(min); 
  }
} public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int PortA = sc.nextInt();
    int PortB = sc.nextInt();
    int PortC = sc.nextInt();
    int Time[]= new int[6];
    
    Time[0]=PortA+PortB;
    Time[1]=PortC+PortB;
    Time[2]=PortA+PortC;
    Time[3]=PortB+PortC;
    Time[4]=PortC+PortA;
    Time[5]=PortB+PortA;
   

	int max = Time[0];
	int min = Time[1];
for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
}


System.out.println(min); 
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int PortA = sc.nextInt();
    int PortB = sc.nextInt();
    int PortC = sc.nextInt();
    int Time[]= new int[6];
    
    Time[0]=PortA+PortB;
    Time[1]=PortC+PortB;
    Time[2]=PortA+PortC;
    Time[3]=PortB+PortC;
    Time[4]=PortC+PortA;
    Time[5]=PortB+PortA;
   

	int max = Time[0];
	int min = Time[1];
for (int i = 1; i < Time.length; i++) {
    int v = Time[i];
    if (v > max) {
        max = v;
    }
    if (v < min) {
        min = v;
    }
}


System.out.println(min); 
  }
}

