#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a[3], result, sum;
  for (int i = 0; i < 3; i++) cin >> a[i];
  sum = a[0] + a[1];
  if (a[0] == a[1] && a[1] == a[2])
    result = a[0] * 3;
  else if (a[0] >= a[1] + a[2])
    result = a[1] + a[1] + a[2] + a[2];
  else if (a[1] >= a[0] + a[2])
    result = a[0] + a[0] + a[2] + a[2];
  else if (sum >= a[2]) {
    result = a[0] + a[2] + a[1];
  } else if (sum < a[2]) {
    result = a[0] + a[0] + a[1] + a[1];
  }
  cout << result << endl;
  return 0;
}
