#include<stdio.h>
struct Book {
    int id;
    char title[50];
    char author[50];
};
int main() {
    int n, i;
    struct Book books[10];
    scanf("%d", &n);
    if ( n < 0 || n > 10) {
        printf("Invalid input\n");
        return 0;
    }
    for (i = 0; i < n; i++) {
        scanf("%d %s %s", &books[i].id, books[i].title, books[i].author);
    }
    for (i = 0; i < n; i++) {
        prinf("%s\n", books[i].title);
    }
    return 0;
}