mystr = input() a = len(mystr) % 8 b = int(len(mystr) / 8) start = 0 for i in range(b): print(mystr[start:start+8]) start += 8 if a: tmpstr = mystr[b*8:b*8+a] + "0"*(8-a) print(tmpstr)