import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()){
String str = sc.nextLine();
StringBuffer sb = new StringBuffer(str);
int l = sb.length();
int z = 8-l%8;
while (z>0&&z<8){
sb.append(0);
z--;
}
String s = sb.toString();
while (s.length()>0){
System.out.println(s.substring(0,8));
s = s.substring(8);
}
}
}
}