#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(0);
  int cases, caseno = 0, n, i, j, k, cnt, sum, a, b, c;
  cin >> a >> b >> c;
  k = a + a + b + b;
  k = min(k, a + c + b);
  k = min(k, a + c + c + a);
  k = min(k, b + c + c + b);
  cout << k;
  return 0;
}
