data = []
while True:
    try:
        t = input()
        data.append(t)
    except:
        break
for t in data:
    if len(t) == 0:
        continue
    if len(t) % 8 > 0:
        t += '0'*(8-len(t) % 8)
    eight_num = int(len(t)/8)
    for i in range(eight_num):
        print(t[i*8:(i+1)*8])