#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int arr[4];
  arr[0] = a + a + b + b;
  arr[1] = a + c + c + a;
  arr[2] = b + c + c + b;
  arr[3] = a + c + b;
  cout << *min_element(arr, arr + 4) << endl;
}
