#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef vector vi; typedef vector vvi; typedef vector vs; #define all(c) (c).begin(), (c).end() #define loop(i,a,b) for(ll i=a; iDUMP &operator,(const T&t){if(this->tellp())*this<<", ";*this<>a[0]){ rep(i,2)cin>>a[i+1]; int m=max({a[0],a[1],a[2]}); int ans=0; rep(i,m){ if(a[2]<2) break; sort(a,a+3); a[0]++; a[2]-= 2; dump(a[0],a[1],a[2]); ans=max(ans,min({a[0],a[1],a[2]})); } cout << ans << endl; } }