#include <bits/stdc++.h>
using namespace std;
int main() {
  int q, b, c, x, y;
  scanf("%d%d%d", &q, &b, &c);
  int a[4];
  for (int i = 0; i < 4; i++) a[i] = 0;
  a[0] = 2 * (q + b);
  a[1] = 2 * (q + c);
  a[2] = 2 * (c + b);
  a[3] = q + b + c;
  sort(a, a + 4);
  printf("%d", a[0]);
  return 0;
}
