#include #include #include #include #include #define all(x) x.begin(),x.end() #define pb push_back #define ll long long #define P pair #define LP pair using namespace std; int main() { int a, b, c; cin >> a>>b>>c; cout << min(min(a, b) + c, (a + b + c) / 2) << endl; return 0; }