#include <bits/stdc++.h>
int main() {
  int P;
  int Q;
  int R;
  int num[3];
  int min;
  int ret = scanf("%d %d %d", &P, &Q, &R) == 1;
  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;
  }
  num[0] = P + Q;
  num[1] = Q + R;
  num[2] = R + P;
  min = num[0];
  if (num[1] < min) min = num[1];
  if (num[2] < min) min = num[2];
  printf("%d\n", min);
  return 0;
}
