#include <stdio.h>
int main()
{
int i = 0, count = 0, count1 = 0;
char a[] = "dppccddd";
for (i = 0; i <= 6; i++)
{
if (a[i] == a[i + 1])
count++;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKICAgCWludCBpID0gMCwgY291bnQgPSAwLCBjb3VudDEgPSAwOwogICAgY2hhciBhW10gPSAiZHBwY2NkZGQiOwogICAgZm9yIChpID0gMDsgaSA8PSA2OyBpKyspCiAgICB7CiAgICAJaWYgKGFbaV0gPT0gYVtpICsgMV0pCiAgICAJY291bnQrKzsKICAgIH0KICAgIHByaW50ZigiJWQiLCBjb3VudCk7CiAgICAKICAgIHJldHVybiAwOwp9Cg==