#include #include #include using namespace std; int main(){ string S; cin >> S; int num = 0,ans = 0 , i; for(i = 0; i < S.size(); i++){ if(S[i] == -30){ num++; i += 2; } else{ ans = max(ans, num); num = 0; } } ans = max(ans, num); cout << ans << endl; }