#include <bits/stdc++.h>
using namespace std;
long long a, b, c, minn;
long long t[10];
void solve() {
  int i;
  t[0] = a + b + c;
  t[1] = a * 2 + b * 2;
  t[2] = a * 2 + c * 2;
  t[3] = c * 2 + b * 2;
  minn = t[0];
  for (i = 1; i <= 3; i++)
    if (t[i] < minn) minn = t[i];
  printf("%I64d\n", minn);
}
int main() {
  while (scanf("%I64d %I64d %I64d", &a, &b, &c) == 3) solve();
  return 0;
}
