#include<stdio.h>
#include<string.h>
int ong(char *poem)//判断是否押韵
{
int i,len=strlen(poem),flag=0;
for(i=0;i<len;i++){
if(poem[i]==','){
if(poem[i-1]=='g'&&poem[i-2]=='n'&&poem[i-3]=='o') flag++;
else return 0;
}
if(poem[i]=='.'){
if(poem[i-1]=='g'&&poem[i-2]=='n'&&poem[i-3]=='o') flag++;
else return 0;
}
if(flag==2) return 1;
}
return 0;
}
void Printf(char *poem)
{
int i,len=strlen(poem),cnt=0,num;
for(i=0;i<len;i++){
if(poem[i]==' ') cnt++;
}
num=cnt;
for(i=len-1;i>=0;i--){
if(poem[i]==' ') num--;
if(num==cnt-2){
poem[i]='\0';
}
}
strcat(poem,"qiao ben zhong.");
puts(poem);
}
int main()
{
int n;
char str[20][100];
scanf("%d",&n);
getchar();
for(int i=0;i<n;i++){
gets(str[i]);
int result=ong(str[i]);
if(result==1) Printf(str[i]);
else printf("Skipped\n");
}
return 0;
}