#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int a, b, c;
  cin >> a >> b >> c;
  cout << min(min(2 * (b + c), a + c + b), min(2 * (a + b), 2 * (a + c)))
       << '\n';
  return 0;
}
