#include #define MOD 1000000007LL using namespace std; typedef long long ll; typedef pair P; ll dp[10001]; ll Bp[10001]; ll hash2[10001]; ll B=103; int main(void){ int n; string str; cin >> str; n=str.size(); Bp[0]=1; for(int i=0;i0LL){ ans=(ans+dp[i])%MOD; int rest=n-i*2; for(int len=0;len