#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a, b, c;
  cin >> a >> b >> c;
  cout << min(a, b + c) + min(c, a + b) + min(b, a + c) << endl;
}
int main() {
  { solve(); }
  return 0;
}
