#include <bits/stdc++.h>
using namespace std;
int main() {
  long long D[3], d;
  cin >> D[0] >> D[1] >> D[2];
  d = D[0] + D[1] + D[2];
  if (2 * (D[0] + D[1]) < d) d = 2 * (D[0] + D[1]);
  if (2 * (D[0] + D[2]) < d) d = 2 * (D[0] + D[2]);
  if (2 * (D[1] + D[2]) < d) d = 2 * (D[1] + D[2]);
  cout << d;
  return 0;
}
