// NOTE: it is recommended to use this even if you don't understand the following code.

#include <fstream>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // ifstream cin("input.txt");
    // ofstream cout("output.txt");

    int N, K;
    cin >> N >> K;

    vector<int> A(N);
    for (int i = 0; i < N; ++i)
        cin >> A[i];

    vector<vector<int>> G(N, vector<int>(4));


    // INSERT YOUR CODE HERE


    for (int i = 0; i < N; ++i) {
        for (int j = 0; j < 4; ++j)
            cout << G[i][j] << " ";
        cout << endl;
    }

    return 0;
}
