#include <bits/stdc++.h>
using namespace std;
const int nmax = 100010;
int main() {
  int 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;
}
