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 result = 201;
    if (P+Q < result) {
      result = P+Q;
    }
    if (Q+R < result) {
      result = Q+R;
    }
    if (P+R < result) {
      result = P+R;
    }
    System.out.println(result);
  }
} 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 result = 201;
    if (P+Q < result) {
      result = P+Q;
    }
    if (Q+R < result) {
      result = Q+R;
    }
    if (P+R < result) {
      result = P+R;
    }
    System.out.println(result);
  }
} 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 result = 201;
    if (P+Q < result) {
      result = P+Q;
    }
    if (Q+R < result) {
      result = Q+R;
    }
    if (P+R < result) {
      result = P+R;
    }
    System.out.println(result);
  } main {
    Scanner sc = new Scanner(System.in);
    int P = sc.nextInt();
    int Q = sc.nextInt();
    int R = sc.nextInt();
    int result = 201;
    if (P+Q < result) {
      result = P+Q;
    }
    if (Q+R < result) {
      result = Q+R;
    }
    if (P+R < result) {
      result = P+R;
    }
    System.out.println(result);
  } 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 result = 201; result 201 if (P+Q < result) {
      result = P+Q;
    } P+Q < result P+Q P Q result {
      result = P+Q;
    } result = P+Q result P+Q P Q if (Q+R < result) {
      result = Q+R;
    } Q+R < result Q+R Q R result {
      result = Q+R;
    } result = Q+R result Q+R Q R if (P+R < result) {
      result = P+R;
    } P+R < result P+R P R result {
      result = P+R;
    } result = P+R result P+R P R System.out.println(result) System.out.println System.out System System.out result 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 result = 201;
    if (P+Q < result) {
      result = P+Q;
    }
    if (Q+R < result) {
      result = Q+R;
    }
    if (P+R < result) {
      result = P+R;
    }
    System.out.println(result);
  }
} 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 result = 201;
    if (P+Q < result) {
      result = P+Q;
    }
    if (Q+R < result) {
      result = Q+R;
    }
    if (P+R < result) {
      result = P+R;
    }
    System.out.println(result);
  }
} 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 result = 201;
    if (P+Q < result) {
      result = P+Q;
    }
    if (Q+R < result) {
      result = Q+R;
    }
    if (P+R < result) {
      result = P+R;
    }
    System.out.println(result);
  }
}