#include <bits/stdc++.h>   using namespace std;   int main() {     std::ios::sync_with_stdio(false);     std::cin.tie(0);     int a, b, c;     cin >> a >> b >> c;     int s = 0;     int min = a < b ? a : b;     int max = a > b ? a : b;     s += min;     if (c > (max + min))       s += (max + min);     else       s += c;     if ((c + min) < max)       s += c + min;     else       s += max;     cout << s << endl;   }   