#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL);
  ;
  long long a, b, c;
  cin >> a >> b >> c;
  cout << min(a + a + b + b, min(a + b + c, min(a + a + c + c, b + b + c + c)))
       << endl;
  return 0;
}
