#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  int x1, x2, x3;
  x1 = min(a, b + c);
  x2 = min(b, a + c);
  x3 = min(c, b + a);
  printf("%d\n", x1 + x2 + x3);
  return 0;
}
