s = list(input())

si = ""
k1 = 1
k2 = 1
zure = 0

for i in range(len(s)-1):
    #si = s[i]
    #check = s[i+1]

    #for j in range(len(si)):
    #    check += s[i + 1 + j]
    print(s[i+zure],i+zure)
    if s[i + zure] == s[i+1+zure]:
        zure += 2
    #    print(i)
    #    si = ""
    k1 += 1
    if i + zure >= len(s)-2:
        break

print("k2")
zure = 0

for i in range(len(s)-1):
    print(s[i+zure],i+zure)
    if s[i+zure] == s[i+1+zure]:
        zure += 1
    k2 += 1
    if i + zure >= len(s)-2:
        break

print(k1,k2)
#print(max(k1,k2))
