#include #include #include using namespace std; int main () { int N, K; cin >> N >> K; vector A(N); for (int i = 0; i < N; i++) cin >> A[i]; for (int i = 0; i < N * K; i++) { for (int j = 0; j < N * K; j++) { cout << A[i / K][j / K]; } cout << "\n"; } cout << "\n"; }