#include <bits/stdc++.h>
int main() {
  int a, b, c, d, e, f, i, j, g, h;
  scanf("%d %d %d", &a, &b, &c);
  d = (2 * a + 2 * b);
  e = a + b + c;
  g = 2 * a + 2 * c;
  h = 2 * b + 2 * c;
  if (d <= e && d <= g && d <= h) {
    f = d;
  } else if (e <= d && e <= g && e <= h) {
    f = e;
  } else if (g <= d && g <= e && g <= h) {
    f = g;
  } else if (h <= d && h <= e && h <= g) {
    f = h;
  }
  printf("%d", f);
  return 0;
}
