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