import sys
INPUT = sys.stdin.readline
#入力関数
def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

S = SORO_STRING()
S = list(S)
P = len(S)

SS = []
i = 1
count = 0
while(i!=0):
    print(S)
    if len(S)==1 or len(S)==2:
        break
    a = S.pop(0)
    i+=1
    if S!=[]:
        b = S.pop(0)
        i+=1
    else:
        break

    if a==b:
        c = S.pop(0)
        bc = b+c
        count+=1

    
print(i-1)