#include <vector>
#include <utility>
#include <iostream>

using namespace std;

vector<int> y(int N, int M, long long T, vector<int> O, vector<int> H, vector<int> A, vector<int> B) {
    return vector<int> (N, 42);
}




// GRADER DI ESEMPIO
// NON MODIFICARE AL DI SOTTO DI QUESTA LINEA

#ifndef EVAL
int main() {
    int N, M;
    long long T;
    cin >> N >> M >> T;
    vector<int> O(N), H(N);
    vector<int> A(M), B(M);
    for (int &x: O) cin >> x;
    for (int &x: H) cin >> x;
    for (int i = 0; i < M; i++)
        cin >> A[i] >> B[i];

    for (int x: y(N, M, T, O, H, A, B)) cout << x << ' ';
    cout << '\n';

    return 0;
}
#endif

