#include using namespace std; int dp[2][30][30][30][30]; int main() { string s; cin >> s; dp[0][0][0][0][0]=1; int n=s.size(),ans=0; for(int i=0; i