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