#include<stdint n>
#include<string.h>

int main() {
    int n;
    scanf("%d", &n);
    
    char fruits[100][20];
    scanf(" ");
    for (int i = 0; i < n; i++) {
        scanf("%s", fruits[i]);
    }
    
    char targets[20];
    scanf("%s", target);
    
    int found = 0;
    for ( int i = 0; i < n; i++) {
        if (strcmp(fruits[i], target) == 0) {
            found = 1;
            break;
        }
    }
    if (found) {
        for (int i = 0; i < n; i++) {
            printf("%s", fruits[i]);
            if (i < n - 1) printf(" ");
            
        }
        printf("\n");
    }elas{
        printf("Fruit not found!\n");
        
    }
    return 0;
}