#include <bits/stdc++.h>
int main() {
  int a, b, c, k = 0;
  scanf("%d%d%d", &a, &b, &c);
  if (a > b + c) {
    printf("%d", b + b + c + c);
  } else if (c > a + b) {
    printf("%d", a + a + b + b);
  } else if (b > a + c) {
    printf("%d", a + a + c + c);
  } else {
    printf("%d", a + b + c);
  }
}
