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

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

using namespace std;

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

    int Q;
    cin >> Q;
    
    for (int i = 0; i < Q; i++) {
        int A;
        cin >> A;


        // insert your code here


        // print the result
        cout << 42 << " " << 42 << endl;
    }


    return 0;
}
