#include int main(){ char a[11],b[11]; int c[26]={0},i=0; scanf("%s%s",a,b); while(a[i]!='\0'){ printf("%d %d\n", i, a[i]-'a'); c[a[i++]-'a']++; } int n; for(n = 0; n < 26;n++) printf("%d", c[n]); while(i){ if(!c[b[i]-'a']){ printf("NO\n"); return 0; }else{ c[b[i]-'a']--; } i--; } printf("YES\n"); return 0; }