17. Column Average

I'm a slow walker, but I never walk backwards.

Task Description

Write a program to read the number of rows ($r$) and columns ($c$) of a two-dimensional integer array first, then read the array elements row by row. Finally print the average (in integer) of every column.

Limits

Both $r$ and $c$ are no more than $100$.

Input Format

There are $r + 1$ lines in the input. The first line has $r$ and $c$. Each of the next $r$ lines has $c$ integers as a row in the matrix.

Output Format

There are $c$ lines in the output. The $i$-th line has the average of the $i$-th column.

Sample Input

2 3
1 2 3
4 5 6

Sample Output

2
3
4

Discussion