while True:
try:
s=input()
while len(s)>8:
print(s[:8])
s=s[8:] #截断 每次都往后移动8个,直到lens小于等于8
print(s.ljust(8,"0")) #指定字符串长度8,填充字符“0”
except:
break