a[9];b[];main(i,s){while(~scanf("%s%s%s",a,b,s))puts(strstr(b,a)&&strstr(s,b)?"YES":"NO");}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page