#include #include int main(void) { int i, j, temp; char a[11], b[11]; scanf("%s",a); scanf("%s", b); for(i = 0; a[i] != '\0'; i++){ for(j = i; b[j] != '\0'; j++){ if(a[i] == b[j]){ temp = b[i]; b[i] = b[j]; b[j] = temp; } } } if(strcmp(a, b) == 0){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }