s1 = input() s2 = "" while len(s1) % 8 != 0: s1 += "0" for i in range(len(s1)): s2 += s1[i] if (i + 1) % 8 == 0: s2 += "\n" print(s2)