N = int(input()) X, Y = 0, 0 for i in range(N): x, y = map(int, input().split()) X += x Y += y print(X // N + Y // N)