#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 4000000000000000001 int main(){ string a; cin>>a; rep(i,a.size()+1){ string s = a; string t = ""; rep(j,i)t += a[j]; reverse(t.begin(),t.end()); s += t; t = string(s.rbegin(),s.rend()); if(s==t){ cout<