n = int(input()) s = [input.split() for i in range(n)] z = 0 for i in range(n): z = z + s[i]