Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- s = [0,0,0]
- for i in range(n):
- b = input().split()
- for j in range(1, 4):
- s[j - 1] += int(b[j])
- for i in range(3):
- s[i] //= n
- print(str(s[0]) + " " + str(s[1])+ " " + str(s[2]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement