#include using namespace std; int dp[1009][3]; int main(){ string S; cin >> S; int ans=0; for(int i=0;i