#include <bits/stdc++.h>
int main() {
  int a1, b1, c1, a, b, c, d, min = 0, max = 0;
  scanf("%d %d %d", &a1, &b1, &c1);
  a = (a1 * 2) + (b1 * 2);
  b = a1 + b1 + c1;
  c = (a1 * 2) + (c1 * 2);
  d = (b1 * 2) + (c1 * 2);
  if (a > b) {
    max = a;
    min = b;
  } else {
    max = b;
    min = a;
  }
  if (c > d) {
    if (c > max) {
      max = c;
    }
    if (d < min) {
      min = d;
    }
  } else {
    if (d > max) {
      max = d;
    }
    if (c < min) {
      min = c;
    }
  }
  printf("%d\n", min);
  return 0;
}
