import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			String str = sc.nextLine();
			int strlength = str.length();
			if(strlength >= 8){//字符串长度大于等于8则每8位打印一次,取余部分用0补全8位;
				int a = str.length() / 8;
				int b = str.length() % 8;
				for (int i = 0; i < a; i++) {
					System.out.println(str.substring(0,8));
					str = str.substring(8,str.length());
				}
				if(b != 0){
					str = str + "00000000";
					System.out.println(str.substring(0,8));
				}
			}
			else{//字符串长度不满足8位直接用0补全
				str = str + "00000000";
				System.out.println(str.substring(0,8));
			}		
		}			
	}
}