#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  while (~scanf("%d%d%d", &a, &b, &c)) {
    int minn = 0x3f3f3f3f;
    minn = min(a + c + b, a + a + b + b);
    minn = min(minn, b + b + c + c);
    minn = min(minn, a + c + c + a);
    printf("%d\n", minn);
  }
}
