#include using namespace std; bool isPalin(const string& s){ const int n = s.size(); for(int i=0;i> s; cout << solve(s) << endl; return 0; }