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