#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, z;
  scanf("%d %d %d", &x, &y, &z);
  int rlt = x + y + z;
  rlt = min(rlt, x * 2 + y * 2);
  rlt = min(rlt, x * 2 + z * 2);
  rlt = min(rlt, y * 2 + z * 2);
  printf("%d\n", rlt);
}
