S = input()

def divide_str_to_list(s, before):
    for i in range(1, len(s)):
        if s[0:i] != before and s[i:] != s[0:i]:
            return [s[0:i]] + divide_str_to_list(s[i:], s[0:i])
    return [s]

print(len(divide_str_to_list(S, "")))
