#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  vector<long long> s;
  s.push_back(2 * a + 2 * b);
  s.push_back(a + c + b);
  s.push_back(b + c + a);
  s.push_back(a + 2 * c + a);
  s.push_back(b + 2 * c + b);
  sort(s.begin(), s.end());
  cout << s[0];
}
