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