import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
String line = sc.nextLine();
String temp;
for (int i = 0; i < line.length(); i += 8){
if (line.length() < i + 8) {
temp = line.substring(i);
StringBuilder sb = new StringBuilder(temp);
for (int j = 0; j < 8 - temp.length(); j++){
sb.append("0");
}
temp = sb.toString();
} else {
temp = line.substring(i, i + 8);
}
System.out.println(temp);
}
}
}
} 
京公网安备 11010502036488号