/*
 * This template is valid both in C and in C++,
 * so you can expand it with code from both languages.
 */

#include <stdio.h>
#include <assert.h>

// constraints
#define MAXN 1000000

// input data
int N, i;
int E[MAXN], A[MAXN], O[MAXN];

int main() {
//  uncomment the following lines if you want to read/write from files
//  freopen("input.txt", "r", stdin);
//  freopen("output.txt", "w", stdout);

    assert(1 == scanf("%d", &N));
    for(i=0; i<N; i++)
        assert(1 == scanf("%d", &E[i])); // evacuation directions
    for(i=0; i<N; i++)
        assert(1 == scanf("%d", &A[i])); // arrogance

    
    // insert your code here
    for(i=0; i<N; i++) O[i] = 42;
    
    
    // print the result
    for(i=0; i<N; i++) printf("%d ", O[i]);
    printf("\n");
    return 0;
}
