#include <bits/stdc++.h>
using namespace std;
bool compare(const int &a, const int &b) { return a < b; }
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cin.tie(0), cout.tie(0),
      cout.precision(15);
  long long a, b, c;
  while (cin >> a >> b >> c) {
    long long dist = 999999999999;
    dist = min(a + a + b + b, a + b + c);
    dist = min(dist, a + c + c + a);
    dist = min(dist, b + c + c + b);
    cout << dist << endl;
  }
  return 0;
}
