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