R,G,B=[int(i) for i in input().split()] color=[R,G,B] count=0 color=sorted(color) min_color=color[0] count+=min_color for i,c in enumerate(color): color[i]-=min_color # print(i,c) # print(color,count) min_color=color[1] min_index=1 max_color=color[2] max_index=2 amari=max_color-min_color print(max_color,min_color,amari) if int(amari/2)>=min_color: count+=min_color color[max_index]-=(min_color*2+min_color) print(color,count) count+=int(color[max_index]/3) else: count+=int(amari/2) color[max_index]-=(int(amari/2)*2+int(amari/2)) color[min_index]-=int(amari/2) print(color,count) count+=int((int(color[max_index])+int(color[min_index]))/4) print(count)