#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, t;
  while (~scanf("%d%d%d", &a, &b, &c)) {
    t = max(a, max(b, c));
    if ((a + b) <= t)
      printf("%d\n", 2 * (a + b));
    else if ((a + c) <= t)
      printf("%d\n", 2 * (a + c));
    else if ((b + c) <= t)
      printf("%d\n", 2 * (b + c));
    else
      printf("%d\n", a + b + c);
  }
}
