S = input()
temp = "A"
cnt = 0
K = 0
while(cnt<len(S)):
    for j in range(1, len(S)-cnt+1):
        temp1 = S[cnt:cnt+j]
        print(temp1)
        if temp!=temp1:
            cnt += j
            K+=1
            break
    temp = temp1
print(K)