#include <bits/stdc++.h>
using namespace std;
const int MaxN = 1e6;
int ans, m, n, t1, t2, t3;
int main() {
  ans = 1 << 30;
  scanf("%d %d %d", &t1, &t2, &t3);
  ans = min(ans, 2 * (t1 + t2));
  ans = min(ans, t2 + t3 + t1);
  ans = min(ans, 2 * (t1 + t3));
  ans = min(ans, 2 * (t2 + t3));
  printf("%d\n", ans);
}
