#include<stdio.h>
#include<string.h>
int main() {
    int n;
    scanf("%d", &n);
    char fruits[100][20];
    for (int i = 0; i < n; i++)
    scanf("%s", fruits[i]);
}
char searchfruits[20];
scanf("%s", searchFruit);
int found = 0;
for (int i = 0; i < n; i++)
if(strcmp(fruits[i], searchFruit) ==0) {
    found = 1;
    break;
}
}
if (found) {
    for(int i = 0; i < n; i++)
    printf("%s", fruits[i]);
    if(i < n - 1) printf(" ");
}
} else {
    printf("Fruits not founds!");
}
return 0;
}