#include <bits/stdc++.h>
using namespace std;
int a, b, c, s1, s2, s3, s4, d, i, o, n[5], m, j, k, l;
int main() {
  cin >> a >> b >> c;
  s1 = a + b + c;
  s2 = a * 2 + b * 2;
  s3 = a * 2 + c * 2;
  s4 = b * 2 + c * 2;
  n[0] = s1;
  n[1] = s2;
  n[2] = s3;
  n[3] = s4;
  sort(n, n + 4);
  cout << n[0];
}
