#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  long long mini = 2e9;
  long long sum[4];
  sum[0] = a + b + c;
  sum[1] = 2 * (a + b);
  sum[2] = 2 * (b + c);
  sum[3] = 2 * (a + c);
  for (int i = 0; i < 4; i++) {
    mini = min(mini, sum[i]);
  }
  cout << mini;
}
