#include <stdio.h>
#define IN 1
#define OUT 0
int main()
{
int c, nc, nl, nw, state;
state = OUT;
nc = nl = nw = 0;
++nc;
if (c == '\n')
++nl;
if (c == ' ' || c == '\n' || c == '\t')
state = OUT;
else if (state == OUT) {
state = IN;
++nw;
}
}
printf("%d %d %d\n", nc
, nl
, nw
); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIElOICAxCiNkZWZpbmUgT1VUIDAKCmludCBtYWluKCkKewogICAgICAgIGludCBjLCBuYywgbmwsIG53LCBzdGF0ZTsKCiAgICAgICAgc3RhdGUgPSBPVVQ7CiAgICAgICAgbmMgPSBubCA9IG53ID0gMDsKICAgICAgICB3aGlsZSAoKGMgPSBnZXRjaGFyKCkpICE9IEVPRikgewogICAgICAgICAgICAgICAgKytuYzsKICAgICAgICAgICAgICAgIGlmIChjID09ICdcbicpCiAgICAgICAgICAgICAgICAgICAgICAgICsrbmw7CiAgICAgICAgICAgICAgICBpZiAoYyA9PSAnICcgfHwgYyA9PSAnXG4nIHx8IGMgPT0gJ1x0JykKICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGUgPSBPVVQ7CiAgICAgICAgICAgICAgICBlbHNlIGlmIChzdGF0ZSA9PSBPVVQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGUgPSBJTjsKICAgICAgICAgICAgICAgICAgICAgICAgKytudzsKICAgICAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcHJpbnRmKCIlZCAlZCAlZFxuIiwgbmMsIG5sLCBudyk7Cn0=