#include<stdio.h>
int main()
{
char e,str[80];
int i;
while(gets(str)!=NULL)
{
e=getchar();
if(e=='
') scanf("%c",&e);
i=0;
while(str[i]!=' '){
if(str[i]==e) break;
i++;
}
if(str[i]==' ') printf("Not found");
while(str[i]!=' ') printf("%c",str[i++]);
printf("
");
e=getchar();
}
return 0;
}