S = input()
count = 0
i = 0
while i < len(S)-2:
    if S[i] == S[i+1]:
        print(S[i])
        print(S[i+1]+S[i+2])
        i +=3
        count += 2  
    else:
        print(S[i])
        i +=1
        count += 1
if S[i] == S[i+1]:
    count += 1
else:
    count += 2
print(count)