a[9];b[];main(c){for(;~scanf("%s%s%s",a,b,&c);)puts(strstr(b,a)&&strstr(&c,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