#include #include #include #include using namespace std; using namespace atcoder; using namespace __gnu_pbds; using ll=long long; using ld=long double; using vll=vector; using vvll=vector; using pll=pair; // using mint=modint; // template // using ordered_map=tree,rb_tree_tag,tree_order_statistics_node_update>; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll R,G,B; cin>>R>>G>>B; //R<=G<=Bにしましょう(挿入ソートでいい) if(GG)ans+=k; else{ k=min(G,(G+B)/4); if((G-k)/2+(B-k)/2