r,g,b=list(map(int,input().split())) c=0 while r+g+b>2: if r*g*b>0:r-=1;g-=1;b-=1;c+=1 else: m=max([r,g,b]) if r==0:r=1 elif g==0:g=1 elif b==0:b=1 if r==m:r-=2 elif g==m:g-=2 elif b==m:b-=2 print(c)