#include <stdio.h>
int main(){
char c[3],t;
c[2]=' ';
c[1]=' ';
c[0]=' ';
int counter;
counter=0;
while (1){
if (t==10)
continue;
if ((int)t<=0)
break;
c[2]=c[1];
c[1]=c[0];
c[0]=t;
if((c[2]==' '|c[2]=='.')&c[1]==c[0]&c[1]!=' '&c[1]!='.')
counter++;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpewkKCWNoYXIgY1szXSx0OwoJY1syXT0nICc7CgljWzFdPScgJzsKCWNbMF09JyAnOwoJaW50IGNvdW50ZXI7Cgljb3VudGVyPTA7Cgl3aGlsZSAoMSl7CgkJdD1nZXRjaGFyKCk7CgkJaWYgKHQ9PTEwKQoJCQljb250aW51ZTsKCQlpZiAoKGludCl0PD0wKQoJCQlicmVhazsKCQljWzJdPWNbMV07CgkJY1sxXT1jWzBdOwoJCWNbMF09dDsKCQlpZigoY1syXT09JyAnfGNbMl09PScuJykmY1sxXT09Y1swXSZjWzFdIT0nICcmY1sxXSE9Jy4nKQoJCQljb3VudGVyKys7CQoJfQoJcHJpbnRmKCJcbiA6OiAlZCAgIixjb3VudGVyKTsKCXJldHVybiAwOwp9CgoK