char a[];i;main(b){gets(a-11);for(;(b=~getchar())&&b+11&i;a[i]=0)for(i=-12;++i&&a[i]-~b;);i=!puts(i?"YES":"NO");}