#include <bits/stdc++.h>
long long int s[4];
int main() {
  long long int a, b, c;
  scanf("%lld %lld %lld", &a, &b, &c);
  s[0] = a + b + c;
  s[1] = 2 * (a + b);
  s[2] = 2 * (a + c);
  s[3] = 2 * (b + c);
  long long int ans = s[0];
  for (int i = 0; i < 4; i++) {
    if (s[i] < ans) ans = s[i];
  }
  printf("%lld", ans);
}
