#include <bits/stdc++.h>
int main() {
  int P;
  int Q;
  int R;
  int min;
  int ret = scanf("%d %d %d", &P, &Q, &R);
  if (ret == EOF) {
    printf("scanfでエラー\n");
    return -1;
  }
  if (P < 1 || 100 < P || Q < 1 || 100 < Q || R < 1 || 100 < R) {
    printf("scanfでエラー\n");
    return -1;
  }
  min = P + Q;
  if (Q + R < min) {
    min = Q + R;
  }
  if (R + P < min) {
    min = R + P;
  }
  printf("%d\n", min);
  return 0;
}
