#include <bits/stdc++.h>
using namespace std;
long long int a, b, c, ans, x[4];
int main() {
  cin >> a >> b >> c;
  x[0] = a + b + c;
  x[1] = a + c + c + a;
  x[2] = b + c + c + b;
  x[3] = b + b + a + a;
  ans = x[0];
  for (int i = 1; i < 4; i++) {
    if (ans > x[i]) ans = x[i];
  }
  cout << ans << endl;
  return 0;
}
