#include using namespace std; using ll = long long; #define FOR(i,a,b) for(ll i=(a);i<(b);++i) #define ALL(v) (v).begin(), (v).end() #define p(s) cout<<(s)<> s; ll L = s.size(); for(int len=L-1; len>=1; len--){ if(is_there_palin(s, len)){ p(len); return 0; } } return 0; }