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