# your code goes here
import math
a = int(input())
b = int(input())
c = int(input())
T = math.ceil(a/2) + math.ceil(b/2) + math.ceil(c/2)
print ('Số bàn tối thiểu cần mua: ', T)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmltcG9ydCBtYXRoCmEgPSBpbnQoaW5wdXQoKSkKYiA9IGludChpbnB1dCgpKQpjID0gaW50KGlucHV0KCkpClQgPSBtYXRoLmNlaWwoYS8yKSArIG1hdGguY2VpbChiLzIpICsgbWF0aC5jZWlsKGMvMikKcHJpbnQgKCdT4buRIGLDoG4gdOG7kWkgdGhp4buDdSBj4bqnbiBtdWE6ICcsIFQp