while True:
try:
n=input("")
a=len(n)
b=a//8
ct=a%8
if ct==0:
for i in range(b):
print(n[i*8:i*8+8])
else:
U=n+"0"*(8-ct)
d=len(U)//8
for i in range(d):
print(U[i*8:i*8+8])
except:
break