#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, e, f, g, h, i, j, k, l;
  vector<int> v;
  cin >> a >> b >> c;
  d = a * 2;
  e = b * 2;
  f = c * 2;
  h = d + e;
  i = e + f;
  j = d + f;
  g = a + b + c;
  v.push_back(h);
  v.push_back(i);
  v.push_back(j);
  v.push_back(g);
  sort(v.begin(), v.end());
  cout << v[0] << endl;
  return 0;
}
