#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, min;
  cin >> a >> b >> c;
  min = a + a + b + b;
  if (a + a + c + c < min) min = a + a + c + c;
  if (b + b + c + c < min) min = b + b + c + c;
  if (a + b + c < min) min = a + b + c;
  cout << min << endl;
}
