#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a, b, c;
  cin >> a >> b >> c;
  vector<int> v = {a + b + c, 2 * (a + b), 2 * (b + c), 2 * (a + c)};
  cout << *min_element(v.begin(), v.end());
}
