S = input()
i = 0
parts = [S[0]]
parts_append = parts.append
while i < len(S) - 1:
    print(parts[-1], S[i + 1])
    if S[i + 1] == parts[-1]:
        parts_append(S[i + 1:i + 3])
        i += 2
    else:
        parts_append(S[i + 1])
        i += 1

print(len(parts) - (1 if i == len(S) else 0))