while True: try: inpt = input() if len(inpt)%8 != 0: inpt=inpt+(8-len(inpt)%8)*"0" for i in range(0,int(len(inpt)/8)): print(inpt[0 + 8 * i:8 + 8 * i]) except: break