class Solution(object):
def maximumScore(self, a, b, c):
"""
:type a: int
:type b: int
:type c: int
:rtype: int
"""
s = a + b + c
max_val = max(a, b, c)
return s - max_val if max_val * 2 >= s else s // 2