import math as m a, b, c = map(int, input().split()) print(m.floor((a + b + c) / 2))