#include using namespace std; template void vector_sort(vector& v,function fn=[](int a){return a;},int decided=0){ int range=v.size()-decided; if(range==0){ return; } int parent=(v.size()-decided-1)/2; int child=parent*2+1; int parent_depth=1; while(pow(2,parent_depth)-1=0){ for(int i=pow(2,parent_depth)-1;i num(3); cin>>num[0]>>num[1]>>num[2]; vector_sort(num); int answer=0; num[1]-=num[0]; num[2]-=num[0]; answer+=num[0]; num[0]=0; if(num[1]*3<=num[2]){ answer+=num[1]; num[2]-=num[1]*3; answer+=num[2]/5; }else{ answer+=num[2]/3; } cout<