#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, n1, n2, n3, m, m1, m2;
  cin >> a >> b >> c;
  n = a + b + c;
  n1 = a + a + b + b;
  n2 = a + a + c + c;
  n3 = b + b + c + c;
  m = min(n, n1);
  m1 = min(n2, n3);
  m2 = min(m, m1);
  cout << m2;
}
