#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f, g, h, i, j;
  int x, y, z;
  cin >> x >> z >> y;
  f = x + y + z;
  a = (2 * x + 2 * y);
  b = (2 * y + 2 * z);
  c = (2 * x + 2 * z);
  d = min(a, b);
  e = min(d, c);
  g = min(f, e);
  cout << g << endl;
  return 0;
}
