S = input()

dif = 0
i = 1
last = S[0]
while i < len(S):
    print(last, S[i])
    if last!=S[i]:
        last = S[i]
        i += 1
    else:
        last = ''.join(S[i:i+2])
        i += 2
        dif += 1

print(len(S)-dif)