#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:66777216")
using namespace std;
const double eps = 1e-7;
const double pi = acos(-1.0);
const long long INF = (long long)2e9 + 1;
const long long LINF = (long long)8e18;
const long long inf = (long long)2e9 + 1;
const long long linf = (long long)8e18;
const long long MM = (long long)1e9 + 7;
int solve();
void gen();
int main() {
  solve();
  return 0;
}
int solve() {
  long long d1, d2, d3;
  cin >> d1 >> d2 >> d3;
  long long ans = min(d1, d2 + d3) + min(d1 + d2, d3) + min(d2, d1 + d3);
  cout << ans;
  return 0;
}
