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