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