#include <bits/stdc++.h>
using namespace std;
int main() {
  long int a, b, c;
  cin >> a >> b >> c;
  long int arr[] = {2 * (a + b), 2 * (b + c), 2 * (a + c)};
  int i = 0;
  long int min = a + b + c;
  for (; i < 3; i++)
    if (arr[i] < min) min = arr[i];
  cout << min;
  return 0;
}
