import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = null; while((str = br.readLine()) != null){ String temp = str; // 当输入字符串的长度不是8的整数倍的时候 if(str.length() % 8 != 0){ // 在后面添加0 for (int i = 0; i < 8 - str.length() % 8; i++) { temp+="0"; } } // 将字符串转换成字符数组 char[] c = temp.toCharArray(); // 定义一个计数器 int count = 0; for (int i = 0; i < c.length; i++) { // 遍历字符数组 System.out.print(c[i]); // 每输出一个字符计数器加一 count++; // 当计数器为8的倍数的时候 if(count % 8 == 0){ // 换行 System.out.println(); } } } br.close(); } }