#include <bits/stdc++.h>
using namespace std;
int main() {
  int d[3], i;
  for (i = 0; i <= 2; i++) do {
      cin >> d[i];
    } while (d[i] < 1 or d[i] > pow(10, 8));
  int max = d[0] + d[1] + d[2];
  if (max > 2 * (d[0] + d[2])) max = 2 * (d[0] + d[2]);
  if (max > 2 * (d[1] + d[2])) max = 2 * (d[1] + d[2]);
  if (max > 2 * (d[0] + d[1])) max = 2 * (d[0] + d[1]);
  cout << max;
}
