#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, x2, x3;
  cin >> x1 >> x2 >> x3;
  int d1 = x2 + x3 + x2 + x3;
  int d2 = x1 + x3 + x1 + x3;
  int d3 = x1 + x3 + x2;
  int d4 = x1 + x1 + x2 + x2;
  int m = d1;
  if (d2 < m) m = d2;
  if (d3 < m) m = d3;
  if (d4 < m) m = d4;
  cout << m;
  return 0;
}
