//
// Created by czm on 23-4-27.
//
#include "stdio.h"
int main(void) {
char ch;//接受输入字符
int count = 0;//计数输入的字符个数
while ((ch = getchar()) != '#') {//获取字符输入
if (ch == '\n') {//遇到换行符重新开始计数字符并跳出本次循环
count = 0;
continue;
}
++count;
printf("%c-%d\t", ch, ch);
if (count % 8 == 0 && count != 0) {//8个字符开始换行
printf("\n");
}
}
}