x = float(input()) y = float(input()) z = float(input()) avg = (x + y + z) / 3 avg = int(avg) print(avg)