// editor4
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct Book {
    int id;
    char title[51];
    char author[51];
};
int main(){
    int n;
    if(scanf("%d",&n) != 1){
        return 0;
    }
    if(n<0){
        printf("Invalid ionput");
        return 0;
    }
    struct Book *books=(struct Book *)malloc(n * sizef(struct Book));
    if(books == NULL){
        return 1;
    }
    for(int i=0;i<n;i++){
        scanf("%d",&books[i].id);
        scanf("%s",books[i].title);
        scanf("%s",books[i].author);
    }
    for(int i=0;i<n;i++){
        printf("%S\n",books[i].title);
    }
    free(books);
    return 0;
}