#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  long sum = 0;
  sum += min(a, b);
  sum += min(a + b, c);
  sum += min((c + (min(a, b))), max(a, b));
  cout << sum;
}
