#K80842. Taco Total Sales Calculation

    ID: 35620 Type: Default 1000ms 256MiB

Taco Total Sales Calculation

Taco Total Sales Calculation

You are given records of daily sales for a Taco restaurant. There are n items and m days of sales data. For each day, you are provided with n integers where the ith integer represents the sales for item i on that day.

Your task is to compute the total sales for each item over all the days. Mathematically, for each item i (where 1 \le i \le n), you must calculate:

$$ total[i] = \sum_{j=1}^{m} sales_{j,i} $$

Print the totals for all items as a single line of space-separated integers.

inputFormat

The input is read from stdin and has the following format:

  • The first line contains two space-separated integers, n and m, where n is the number of items and m is the number of days.
  • The next m lines each contain n space-separated integers representing the sales for each item on that day.

outputFormat

Output a single line to stdout containing n space-separated integers. Each integer represents the total sales for the corresponding item across all days.

## sample
3 2
10 20 30
5 10 15
15 30 45