import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines R,G,B = sorted(map(int,read().split())) answer = R G,B = G-R,B-R def test(x,G,B): # x個作ることが可能である # まずは、G,B ともに Rに変換する場合 if G >= x and B >= x: R = (G-x)//2 + (B-x)//2 if R >= x: return True # BからR,Gに変換する場合 B -= 2*x B -= max(0,2 * (x-G)) return B >= x left = 0 # 可能 right = 10 ** 18 while left + 1 < right: x = (left + right) // 2 if test(x,G,B): left = x else: right = x answer += left print(answer)