S = input() + 'A'
ans, prev, next = 1, [S[0]], []
print(prev)
for i in range(1, len(S)):
    if len(next) == 0 or prev == next:
        next.append(S[i])
    else:
        print(next)
        ans, prev, next = ans + 1, next, [S[i]]

print(ans)
