#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, z, c = 0;
  cin >> x >> y >> z;
  if (x < y || x == y) {
    c = c + x;
    if ((x + y) < z || (x + y) == z) {
      c = c + x + 2 * y;
    } else {
      c = c + z;
      if ((x + z) < y)
        c = c + x + z;
      else
        c = c + y;
    }
  } else {
    c = c + y;
    if ((x + y) < z) {
      c = c + 2 * x + y;
    } else {
      c = c + z;
      if ((y + z) < x) {
        c = c + y + z;
      } else
        c = c + x;
    }
  }
  cout << c << endl;
}
