#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void cut_string(char *s){
int i;
for(i = 1;s[i - 1] != '\0';i++){//遍历字符串
if(i % 8 != 0)
{printf("%c",s[i - 1]);}
else if(i % 8 == 0){
printf("%c",s[i - 1]);//输出够8个,多输出一个换行符
printf("\n");
}
}
}
void add_string_for_8(char *s){
int len = strlen(s);
//printf("%d",len);
int size = (len - 1) % 8;
int i;
if(size == 0){//如果字符串长度刚好够8的整数倍,不做操作
}
else
{
for(i = len - 1;i < len + (8 - size) - 1;i++){//如果长度不够,往上边补(8-余数)个0
s[i] = '0';
}
s[i] = '\0';}//最后要加上一个'\0'
//printf("%s",s);
}
int main() {
char s[200];
fgets(s,120,stdin);
add_string_for_8(s);
cut_string(s);
return 0;
}