#include <stdio.h>
#include <string.h>

int main() {
    int n;
    char fruits[100][20];  // Array to store up to 100 fruit names (each up to 19 characters)
    char search[20];

    // Read the number of fruits
    scanf("%d", &n);

    // Read the fruit names
    for (int i = 0; i < n; i++) {
        scanf("%s", fruits[i]);
    }

    // Read the fruit name to search
    scanf("%s", search);

    // Search for the fruit
    int found = 0;
    for (int i = 0; i < n; i++) {
        if (strcmp(fruits[i], search) == 0) {
            found = 1;
            break;
        }
    }

    // Output result
    if (found) {
        for (int i = 0; i < n; i++) {
            printf("%s", fruits[i]);
            if (i < n - 1) printf(" ");
        }
    } else {
        printf("Fruit not found!");
    }

    return 0;
}