#include <stdio.h>
int main(){
char c[3];//Храню последние три символа
c[2]=' ';
c[1]=' ';
c[0]=' ';
int counter;
counter=0;
while (1){
c[2]=c[1];
c[1]=c[0];
if (c[0]==10)//Конец строки. Не нашёл константу EOF.
break;
if((c[2]==' '|c[2]=='.')&c[1]==c[0]&c[1]!=' '&c[1]!='.')
counter++;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpewkKCWNoYXIgY1szXTsvL9Cl0YDQsNC90Y4g0L/QvtGB0LvQtdC00L3QuNC1INGC0YDQuCDRgdC40LzQstC+0LvQsAoJY1syXT0nICc7CgljWzFdPScgJzsKCWNbMF09JyAnOwoJaW50IGNvdW50ZXI7Cgljb3VudGVyPTA7Cgl3aGlsZSAoMSl7CgkJY1syXT1jWzFdOwoJCWNbMV09Y1swXTsKCQljWzBdPWdldGNoYXIoKTsKCQlpZiAoY1swXT09MTApLy/QmtC+0L3QtdGGINGB0YLRgNC+0LrQuC4g0J3QtSDQvdCw0YjRkdC7INC60L7QvdGB0YLQsNC90YLRgyBFT0YuCgkJCWJyZWFrOwoJCWlmKChjWzJdPT0nICd8Y1syXT09Jy4nKSZjWzFdPT1jWzBdJmNbMV0hPScgJyZjWzFdIT0nLicpCgkJCWNvdW50ZXIrKzsKCX0KCXByaW50ZigiJWQiLGNvdW50ZXIpOwoJcmV0dXJuIDA7Cn0KCgo=