#include <iostream>
#include <string>
#include <unordered_map>
#include <cctype>
using namespace std;
bool canFormPalindrome(const string& str) {
unordered_map<char, int> charCount;
for (char c : str) {
if (isalpha(c)) {
charCount[tolower(c)]++;
}
}
int oddCount = 0;
for (const auto& pair : charCount) {
if (pair.second % 2 != 0) {
oddCount++;
}
}
return oddCount <= 1;
}
int main() {
string input;
while (getline(cin, input)) {
if (canFormPalindrome(input)) {
cout << "yes !" << endl;
} else {
cout << "no..." << endl;
}
}
return 0;
}
canFormPalindrome**:unordered_map 來統計每個字母的出現次數。main**:getline 讀取多行輸入。canFormPalindrome 函數,並根據結果輸出「yes !」或「no...」。