#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair P; typedef pair PP; const ll MOD=998244353; const double PI=acos(-1); int main(){ string S; cin>>S; int N=S.size(); vector> ok(N,vector(N,false)); for(int i=0;i=0 && j+1