#include int main(void) { int i = 0, j = 0, flg; int pos[11] = {0}, result = 1; char a[11], b[11]; scanf("%s%s", a, b); while(a[i] != '\0'){ j = 0; while(a[j] != '\0'){ if((a[i] == b[j]) && (pos[j] == 0)){ pos[j] = 1; break; } j++; } i++; } j--; while(j >= 0){ result *= pos[j--]; } if(result){ printf("YES\n"); }else{ printf("No\n"); } return 0; }