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