#include using namespace std; int main(void) { unsigned char s[1000]; scanf("%s", s); int i = 0, n = 0, mx = 0; while (s[i] != 0) { if (s[i] == 226 && s[i + 1] == 128 && s[i + 2] == 166) { n++; mx = max(n, mx); i += 3; } else { n = 0; i++; } } printf("%d\n", mx); return 0; }