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