#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const long long INF = 1e17;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long long a, b, c;
  cin >> a >> b >> c;
  cout << min(min(a + a + b + b, b + b + c + c), min(a + c + b, a + c + c + a))
       << "\n";
  return 0;
}
