#include <bits/stdc++.h>
using namespace std;
inline int mutlak(int x) {
  if (x > 0) return x;
  return -x;
}
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  int ans[10];
  ans[0] = a + b + c;
  ans[1] = 2 * a + 2 * b;
  ans[2] = 2 * a + 2 * c;
  ans[3] = 2 * b + 2 * c;
  sort(ans, ans + 4);
  printf("%d\n", ans[0]);
}
