for(i in strsplit(readLines("stdin")," ")){r=T;k=0;for(j in i[-1])if(!grepl(i[k<-k+1],j))r=F;cat(if(r)"YES\n"else"NO\n")}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page