import (
"bufio"
"os"
"fmt"
)
func main() {
scan := bufio.NewScanner(os.Stdin)
scan.Scan()
s := scan.Text()
for len(s) > 8 {
fmt.Println(s[0:8])
s = s[8:]
}
if len(s) < 8 {
length := len(s)
for i := 0; i < 8 - length; i++ {
s += "0"
}
}
fmt.Println(s)
}