#include #include #include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int ans = 0, temp_ans = 0; int len = 0; string str; cin >> str; len = str.length(); for (int i = 0; i < len - 2; ) { if (str[i] == -30 && str[i + 1] == -128 && str[i + 2]) { temp_ans++; i += 3; int pos = 0, next_pos = 0; } else { ans = max(ans, temp_ans); temp_ans = 0; i++; } } ans = max(ans, temp_ans); cout << ans << endl; return 0; }