def main():
    S=input()
    
    ans = [S[0]]
    c = ""
    for i in range(1, len(S)):
        c += S[i]
        if ans[-1] != c:
            ans.append(c)
            c = ""

    print(ans)
    print(len(ans))    

if __name__ == '__main__':
    main()