package com.array1;

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();
int len = str.length();
if(len<8){
for (int i = 0; i < (8-len); i++) {
str = str+"0";
}
System.out.println(str);
}else {
while (str.length()>8){
System.out.println(str.substring(0,8));
str=str.substring(8);
}
int len2 = str.length();
for (int i = 0; i < (8-len2); i++) {
str = str+"0";
}
System.out.println(str);
}
}
}
}