#別解4 S=input() if S[0]==S[1]: for i in range(2,len(S)): if S[0]!=S[i]: print(i+1,S[i]) else: if S[0]==S[2]: print(2,S[1]) else: print(1,S[0])