//输入两组字符串
//每八个字符一行分解
//不足八个的用0补齐
#include <stdio.h>
#include <string.h>
int main()
{
char str_1[1000] = {0};
int i = 0;
int j = 0;
int m = 0;
for(m = 0;m<2;m++)
{
fgets(str_1, sizeof(str_1), stdin);
int line = 0;
int re = 0;
//*********************************************
//格外注意strlen()会把字符串结束符记录上
//*********************************************
line = (strlen(str_1)-1)/8;
re = (strlen(str_1)-1)%8;
for(i = 0;i<line;i++)
{
for(j = 0;j<8;j++)
{
printf("%c",str_1[i*8+j]);
}
printf("\n");
}
//*********************************************
//如果恰好,要避免打印一排0
//*********************************************
if(re==0)
{
return 0;
}
for(i = 0;i<8;i++)
{
if(i<re)
{
printf("%c",str_1[line*8+i]);
}
else
{
printf("0");
}
}
printf("\n");
}
}