#include <bits/stdc++.h>
using namespace std;
long long a, b, c, r1, r2, r3, r4, res;
inline long long min(long long x, long long y) {
  if (x < y) return x;
  return y;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> a >> b >> c;
  r1 = 2 * a + 2 * b;
  r2 = a + c + b;
  r3 = a + c + c + a;
  r4 = b + c + c + b;
  res = min(min(r1, r2), min(r3, r4));
  cout << res << endl;
  return 0;
}
