#include <bits/stdc++.h>
using namespace std;
void ar(vector<int> &v);
int main() {
  int e = 0, f = 0;
  vector<int> v(3);
  for (int i = 0; i < 3; i++) {
    cin >> v[i];
    e += v[i];
  }
  ar(v);
  f = (v[0] + v[1]) * 2;
  if (e <= f)
    cout << e;
  else
    cout << f;
}
void ar(vector<int> &v) {
  int a = 0;
  for (int i = 0; i < 3; i++)
    for (int j = 1 + i; j < 3; j++) {
      if (v[i] > v[j]) {
        a = v[i];
        v[i] = v[j];
        v[j] = a;
      }
    }
}
