data = []
while True:
    try:
        t = input()
        data.append(t)
    except (EOFError, KeyboardInterrupt):
        break

for i in data:
    if len(i) % 8 == 0:
        n = i
    else:
        n = i + '0' * (8 - len(i) % 8)
    for j in range(int(len(n)/8)):
        print(n[j*8:(j+1)*8])