#include <bits/stdc++.h>
using namespace std;
class APatrickAndShopping {
 public:
  void solve(std::istream& in, std::ostream& out) {
    int a, b, c;
    in >> a >> b >> c;
    int op = 2 * (a + b);
    int opn = a + b + c;
    op = min(op, opn);
    opn = 2 * (a + c);
    op = min(op, opn);
    opn = 2 * (b + c);
    op = min(op, opn);
    out << op << endl;
  }
};
int main() {
  APatrickAndShopping solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
