#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
  scanf("%d %d %d", &a, &b, &c);
  if (a > b) swap(a, b);
  if (c < a)
    swap(a, c), swap(c, b);
  else if (c < b)
    swap(b, c);
  printf("%d", min(a + b + c, a + a + b + b));
}
