#include <iostream>
#include <string>
using namespace std;
bool isPali(string str) {
int lo = 0, hi = str.size() - 1;
while (lo < hi) {
if (str[lo] != str[hi]) return false;
++lo, --hi;
}
return true;
}
int main() {
string str;
while (getline(cin, s...