#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
const double pi = acos(-1.0);
int a, b, c;
int main() {
  while (cin >> a >> b >> c) {
    int ans = a + b + c;
    ans = min(a * 2 + b * 2, ans);
    ans = min(a + c + a + c, ans);
    ans = min(b + c + b + c, ans);
    cout << ans << endl;
  }
  return 0;
}
