#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, num = 0;
  cin >> a >> b >> c;
  num = min(a + b + c, 2 * a + 2 * b);
  num = min(num, 2 * c + 2 * b);
  num = min(num, 2 * c + 2 * a);
  cout << num;
}
