#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 3, sum = 0;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  sort(a, a + n);
  int ans = min(2 * (a[0] + a[1]), sum);
  cout << ans;
  return 0;
}
