from collections import deque
s = deque(list(input())[::-1])
n = len(s)

l = []
r = s

c = 0
for i in range(n):
    l.append(r.popleft())
    if l!=list(r)[0: len(l)]:
        c += 1
        print(l)
        l = []
print(c+1)