s = input()

# Add zeros at the end of the input string if its length is not a multiple of 8:
s_length = len(s)
if s_length%8 == 0:
    pass
else:
    num_zeros = 8 - (s_length%8) # The number of zeros to add is equal to 8 minus the remainder of the length of the input string divided by 8. E.g.: 38%8 = 6 -> Add (8-6)=2 zeros. 
    for _ in range(num_zeros):
        s += "0"

for i in range(0, len(s)//8): # Use the floor division because range() only accepts integer inputs.
    print(s[8*i:(8*i+8)], end="\n") # Use end="\n" to print out results line by line.