// Repetitions #include using namespace std; int main() { string s; cin >> s; int max_count = 0; int current_count = 0; char current = ' '; for (auto c : s) { if (c == current) { current_count ++; max_count = max(max_count, current_count); } else { current = c; current_count = 1; max_count = max(max_count, current_count); } } cout << max_count << endl; return 0; }