#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
long long t, ans, med, tmp, n, m, k;
int main() {
  cin >> n >> m >> k;
  if (n > m) swap(n, m);
  ans = min(((n * 2) + (m * 2)), n + m + k);
  ans = min(ans, (n + n + k + k));
  cout << ans << endl;
  return 0;
}
