/*
 * This template is valid both in C and in C++,
 * so you can expand it with code from both languages.
 * NOTE: it is recommended to use this even if you don't
 * understand the following code.
 */

#include <stdio.h>
#include <assert.h>

// constraints
#define MAXN 1000

// input data
int N, M, i, j;
int P[MAXN][MAXN];
double R[MAXN];

int main() {
//  uncomment the following lines if you want to read/write from files
//  freopen("input.txt", "r", stdin);
//  freopen("output.txt", "w", stdout);

    assert(2 == scanf("%d %d", &N, &M));
    for(j=0; j<M; j++)
        for(i=0; i<N; i++)
            assert(1 == scanf("%d", &P[i][j]));

    R[0] = 42; // insert your code here
    
    for(i=0; i<N; i++)
        printf("%d ", (int)R[i]); // print the result
    printf("\n");
    return 0;
}
