#include <bits/stdc++.h>
using namespace std;
set<pair<long long, long long> > sol;
int main() {
  ios::sync_with_stdio(false);
  long long n, m, x, a, b, c, i, cnt = 0, val;
  cin >> a >> b >> c;
  val = 2 * a + 2 * b;
  val = min(val, a + b + c);
  val = min(val, a + c + a + c);
  val = min(val, b + c + b + c);
  cout << val << "\n";
  return 0;
}
