import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    
    int A = P + Q;
    int B = R + Q;
    int C = P + R;
    int D = Q + R;
    int E = R + P;
    int F = Q + P;
    
    int values[] = {A, B, C, D, E, F};
        int min = values[0];
 
        for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        }
        System.out.println(min);

  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    
    int A = P + Q;
    int B = R + Q;
    int C = P + R;
    int D = Q + R;
    int E = R + P;
    int F = Q + P;
    
    int values[] = {A, B, C, D, E, F};
        int min = values[0];
 
        for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        }
        System.out.println(min);

  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    
    int A = P + Q;
    int B = R + Q;
    int C = P + R;
    int D = Q + R;
    int E = R + P;
    int F = Q + P;
    
    int values[] = {A, B, C, D, E, F};
        int min = values[0];
 
        for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        }
        System.out.println(min);

  } main {

    Scanner sc = new Scanner(System.in);
    
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    
    int A = P + Q;
    int B = R + Q;
    int C = P + R;
    int D = Q + R;
    int E = R + P;
    int F = Q + P;
    
    int values[] = {A, B, C, D, E, F};
        int min = values[0];
 
        for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        }
        System.out.println(min);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int P = sc.nextInt(); P sc.nextInt() sc.nextInt sc int Q = sc.nextInt(); Q sc.nextInt() sc.nextInt sc int R = sc.nextInt(); R sc.nextInt() sc.nextInt sc int A = P + Q; A P + Q P Q int B = R + Q; B R + Q R Q int C = P + R; C P + R P R int D = Q + R; D Q + R Q R int E = R + P; E R + P R P int F = Q + P; F Q + P Q P int values[] = {A, B, C, D, E, F}; values {A, B, C, D, E, F} A B C D E F int min = values[0]; min values[0] values 0 for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        } int i = 1; int i = 1; i 1 i < values.length i values.length values values.length i++ i++ i {
            min = Math.min(min, values[i]);
        } {
            min = Math.min(min, values[i]);
        } min = Math.min(min, values[i]) min Math.min(min, values[i]) Math.min Math min values[i] values i 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) {

    Scanner sc = new Scanner(System.in);
    
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    
    int A = P + Q;
    int B = R + Q;
    int C = P + R;
    int D = Q + R;
    int E = R + P;
    int F = Q + P;
    
    int values[] = {A, B, C, D, E, F};
        int min = values[0];
 
        for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        }
        System.out.println(min);

  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    
    int A = P + Q;
    int B = R + Q;
    int C = P + R;
    int D = Q + R;
    int E = R + P;
    int F = Q + P;
    
    int values[] = {A, B, C, D, E, F};
        int min = values[0];
 
        for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        }
        System.out.println(min);

  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    
    int A = P + Q;
    int B = R + Q;
    int C = P + R;
    int D = Q + R;
    int E = R + P;
    int F = Q + P;
    
    int values[] = {A, B, C, D, E, F};
        int min = values[0];
 
        for (int i = 1; i < values.length; i++) {
            min = Math.min(min, values[i]);
        }
        System.out.println(min);

  }
}