#include #include #include int main() { char str[11] = ""; char ansStr[11] = ""; int check[10] = { 0 }; scanf("%s", str); scanf("%s", ansStr); for (int i = 0;str[i] != '\0';i++) { bool isOk = false; for (int j = 0;str[j] != '\0';j++) { if (str[i] == ansStr[j] && check[j] == 0) { isOk = true; check[j] = 1; break; } } if (!isOk) { printf("NO\n"); return 0; } } printf("YES\n"); return 0; }