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