#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, j, i, k;
  cin >> a >> b >> c;
  d = a + c + b;
  j = a + c + c + a;
  i = b + b + a + a;
  k = b + c + c + b;
  cout << min(d, min(j, min(i, k)));
}
