#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  long long x = a + b + c;
  long long y = 2 * (a + b);
  x = min(x, 2 * (a + c));
  x = min(x, 2 * (b + c));
  cout << min(x, y) << endl;
}
