#include <stdio.h>
#include <string.h>
int main()
{
int n;
scanf("%d", &n);
char books[n][100];
for (int i = 0; i < n; i++)
scanf("%s", &books[i]);
char tofind[100];
scanf("%s", tofind);
for (int i = 0; i < n; i++)
{
if (strcmp(books[i], tofind) == 0)
{
printf("查找成功");
return 0;
}
}
printf("查找失败");
return 0;
}