#define _CRT_SECURE_NO_WARNINGS #include int main(void) { int count, num, i; char a[1024]; num = 0; count = 0; scanf("%s\n", a); for (i = 0; a[i] != '\0'; i++) { if (a[i] == '…') count++; else { if (num < count) num = count; count = 0; } } return 0; }