#include <stdio.h>
#include <ctype.h>
#define MAXCHARS 8
int chars[MAXCHARS];
int ingroup;
long cnt;
int main() {
void print_group(void);
for(; (chars
[ingroup
] = getchar())!=EOF
;cnt
++) if(++ingroup == MAXCHARS)
{
print_group();
ingroup = 0;
}
if(ingroup)
print_group;
return 0;
}
void print_group(void)
{
int i;
void print_space(int c);
printf("%06ld",cnt
-ingroup
+ 1); for(i=0; i< ingroup;i++)
for(i=0;i<ingroup;i++){
print_space(chars[i]);
else
}
}
void print_space(int c)
{
int label;
if(c==' ')
else{
switch(c)
{
case '\b' : label ='b'; break;
case '\f' : label ='f'; break;
case '\n' : label ='n'; break;
case '\r' : label ='r'; break;
case '\t' : label ='t'; break;
case '\v' : label ='v'; break;
default : label = '?'; break;
}
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxjdHlwZS5oPgojZGVmaW5lIE1BWENIQVJTIDgKaW50IGNoYXJzW01BWENIQVJTXTsKaW50IGluZ3JvdXA7CmxvbmcgY250OwppbnQgbWFpbigpIHsKICAgIHZvaWQgcHJpbnRfZ3JvdXAodm9pZCk7CiAgICBmb3IoOyAoY2hhcnNbaW5ncm91cF0gPSBnZXRjaGFyKCkpIT1FT0Y7Y250KyspCiAgICAgICAgaWYoKytpbmdyb3VwID09IE1BWENIQVJTKQogICAgICAgIHsKICAgICAgICAgICAgcHJpbnRfZ3JvdXAoKTsKICAgICAgICAgICAgaW5ncm91cCA9IDA7CiAgICAgICAgfQogICAgaWYoaW5ncm91cCkKICAgICAgICBwcmludF9ncm91cDsKICAgIHJldHVybiAwOwp9CnZvaWQgcHJpbnRfZ3JvdXAodm9pZCkKewogICAgaW50IGk7CiAgICB2b2lkIHByaW50X3NwYWNlKGludCBjKTsKICAgIHByaW50ZigiJTA2bGQiLGNudCAtaW5ncm91cCArIDEpOwogICAgZm9yKGk9MDsgaTwgaW5ncm91cDtpKyspCiAgICAgICAgcHJpbnRmKCIlMDNvIixjaGFyc1tpXSk7CiAgICBwcmludGYoIlxuIik7CiAgICBmb3IoaT0wO2k8aW5ncm91cDtpKyspewogICAgICAgIHB1dGNoYXIoJyAnKTsKICAgICAgICBpZihpc3NwYWNlKGNoYXJzW2ldKSkKICAgICAgICAgICAgcHJpbnRfc3BhY2UoY2hhcnNbaV0pOwogICAgICAgIGVsc2UgaWYoaXNwcmludChjaGFyc1tpXSkpCiAgICAgICAgICAgIHByaW50ZigiJWMiLGNoYXJzW2ldKTsKICAgICAgICBlbHNlIAogICAgICAgICAgICBwcmludGYoIiAiKTsKICAgIH0KICAgIHB1dGNoYXIoJ1xuJyk7Cn0Kdm9pZCBwcmludF9zcGFjZShpbnQgYykKewogICAgaW50IGxhYmVsOwogICAgaWYoYz09JyAnKQogICAgICAgIHByaW50ZigiICIpOwogICAgZWxzZXsKICAgICAgICBzd2l0Y2goYykKICAgICAgICB7CiAgICAgICAgICAgIGNhc2UgJ1xiJyA6IGxhYmVsID0nYic7IGJyZWFrOwogICAgICAgICAgICBjYXNlICdcZicgOiBsYWJlbCA9J2YnOyBicmVhazsKICAgICAgICAgICAgY2FzZSAnXG4nIDogbGFiZWwgPSduJzsgYnJlYWs7CiAgICAgICAgICAgIGNhc2UgJ1xyJyA6IGxhYmVsID0ncic7IGJyZWFrOwogICAgICAgICAgICBjYXNlICdcdCcgOiBsYWJlbCA9J3QnOyBicmVhazsKICAgICAgICAgICAgY2FzZSAnXHYnIDogbGFiZWwgPSd2JzsgYnJlYWs7CiAgICAgICAgICAgIGRlZmF1bHQgOiBsYWJlbCA9ICc/JzsgYnJlYWs7ICAgICAgICAgICAgCiAgICAgICAgfQogICAgICAgIHByaW50ZigiXFwlYyIsbGFiZWwpOwogICAgfQp9Cg==