x, y, z = map(int, input().split()) total = x + y + z if(total >= max(x, y) * 2): print(total // 2) else: print(total - max(x, y))