#include <bits/stdc++.h>
using namespace std;
long long day[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
long long dx[] = {0, 1, 0, -1};
long long dy[] = {1, 0, -1, 0};
struct edge {
  long long to, cost;
};
bool isupper(char c) {
  if ('A' <= c && c <= 'Z') return 1;
  return 0;
}
bool islower(char c) {
  if ('a' <= c && c <= 'z') return 1;
  return 0;
}
bool isPrime(long long x) {
  if (x == 1) return 0;
  if (x == 2) return 1;
  if (x % 2 == 0) return 0;
  for (long long i = 3; i * i <= x; i++)
    if (x % i == 0) return 0;
  return 1;
}
bool iskaibun(string s) {
  for (long long i = 0; i < s.size() / 2; i++)
    if (s[i] != s[s.size() - i - 1]) return 0;
  return 1;
}
bool isnumber(char c) { return ('0' <= c && c <= '9'); }
bool isalpha(char c) { return (isupper(c) || islower(c)); }
void printvi(vector<long long> v) {
  for (long long i = (long long)0; i < (long long)v.size(); i++) {
    if (i) cout << " ";
    cout << v[i];
  }
  cout << endl;
}
void printvil(vector<long long> v) {
  for (long long i = (long long)0; i < (long long)v.size(); i++) {
    cout << v[i] << endl;
  }
}
void printvvi(vector<vector<long long>> v) {
  for (long long i = (long long)0; i < (long long)v.size(); i++) {
    for (long long j = (long long)0; j < (long long)v[i].size(); j++) {
      if (j) cout << " ";
      cout << v[i][j];
    }
    cout << endl;
  }
}
void printvstr(vector<string> v) {
  for (long long i = (long long)0; i < (long long)v.size(); i++) {
    cout << v[i] << endl;
  }
}
long long gcd(long long a, long long b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
bool all1(long long x) {
  while (x > 0) {
    if (x % 2 == 0) return false;
    x /= 2;
  }
  return true;
}
signed main() {
  long long a, b, c;
  cin >> a >> b >> c;
  long long ans = 2 * a + 2 * b;
  ans = min(ans, a + b + c);
  ans = min(ans, min(a, b) * 2 + c * 2);
  cout << ans << endl;
}
