input_data = []
data = input()


memory="first"
i=0
k=0

#最後二つが同じなら削除
if data[-1]==data[-2]:
    k+=1
    data=data[:-2]

max_len=len(data)
while max_len!=i:
    if data[i] == memory:
        memory=data[i:i+2]
        print(memory)
        i+=2
    else:
        memory=data[i]
        i+=1        
    k+=1
    
print(k)