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