#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d = 0;
  cin >> a >> b >> c;
  if (b < a) swap(a, b);
  d += a;
  if (c < a + b)
    d += c;
  else
    d += a + b;
  if (b < a + c)
    d += b;
  else
    d += a + c;
  cout << d << endl;
  return 0;
}
