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