//Dragan Andrei Gabriel //University of Bucharest #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int n, m, x, y, v[101]; int main() { #ifndef ONLINE_JUDGE freopen("a.in", "r", stdin); freopen("a.out", "w", stdout); #endif scanf("%d %d %d", &n, &m, &x); for (int i = 1 ; i <= n; i++) { for (int j = 1; j <= m; j++) scanf("%d", &v[j]); for (int k = 1; k <= x; k++) { for (int j = 1; j <= m; j++) for (int l = 1; l <= x; l++) printf("%d ", v[j]); printf("\n"); } } return 0; }