#include <bits/stdc++.h>
using namespace std;
const int OO = (long long)2e9;
const double eps = 1e-9;
const long long MAX = 1000005;
const long long MOD = 256;
int DX[] = {1, -1, 0, 0};
int DY[] = {0, 0, 1, -1};
int main() {
  ios_base::sync_with_stdio(0);
  int a, b, c;
  cin >> a >> b >> c;
  cout << min(a + b + c, min(a + a + b + b, min(b + b + c + c, a + a + c + c)));
  return 0;
}
