#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, p, s = 0, mim;
  cin >> a;
  cin >> b;
  cin >> c;
  if (a + b == c) {
    mim = a + b + c;
    cout << mim;
    return 0;
  } else if (a + b < c) {
    mim = (a * 2) + (b * 2);
    cout << mim;
    return 0;
  } else {
    if (a >= b) {
      p = a;
      a = b;
      b = p;
    }
    if (a + c >= b) {
      mim = a + c + b;
      cout << mim;
      return 0;
    } else {
      mim = a + c + a + c;
      cout << mim;
    }
  }
  return 0;
}
