#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a, b, c;
  cin >> a >> b >> c;
  int ans = min(a, b + c) + min(b, a + c) + min(c, a + b);
  cout << ans;
  return 0;
}
