a,y = map(int, input().split())
scores = [map(float, input().split()) for _ in range(y)]

[print(sum(student)/y) for student in zip(*scores)]
a,y = map(int, input().split())
scores = [map(float, input().split()) for _ in range(y)]

[print(sum(student)/y) for student in zip(*scores)]