a = []
for i in range(3):
    a.append(float(input()))
s = sum(a)
print(int(s/3))