string = input()
n = len(string)
for i in range(0, n, 8):
    if i + 8 < n:
        print(string[i:i+8])
    else:
        print(string[i:] + "0"*(i+8-n))