#include #include int compare(const void* a, const void* b){ return *(int*)a - *(int*)b; } int main(void){ char pri = 'a'; char a[11], b[11]; for(int i = 0; i < 11; i++){ a[i] = 0; b[i] = 0; } scanf("%s", a); scanf("%s", b); qsort(a, 11, sizeof(char), compare); qsort(b, 11, sizeof(char), compare); int flag = 0; for(int i = 0; i < 11; i++){ flag += a[i] - b[i]; } if(flag == 0){ printf("YES\n"); } else printf("NO\n"); return 0; }