S = input()
N = len(S)

ans_l = 0
idx = 0
tmp = S[0]
while idx < N:
    for i in range(N-1):
        if i + idx > N-1:
            break
        if tmp != S[idx:idx+i+1]:
            ans_l += 1
            tmp = S[idx:idx+i+1]
            print(tmp)
            break
    idx += (i+1)

print(ans_l)

