/*
 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 * This template uses "old style" C strings.
 * If you are more comfortable using the String class in C++, please
 * look at the template specific for C++.
 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 * NOTE: it is recommended to use this even if you don't
 * understand the following code.
 */

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

// constraints
#define MAXN 100
#define MAXL 1000
#define MAXC 100

// input data
int N, i;
char contacts[MAXN][MAXL+1];  // +1 is for string terminator
char codes[10][MAXC+1];  // +1 is for string terminator

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("%s", contacts[i]));
    for(i=0; i<10; i++)
        assert(1 == scanf("%s", codes[i]));

    for(i=0; i<N; i++) {
        // insert your code here and change what you print
        printf("%s\n", contacts[i]); 
    }
   
    return 0;
}
