#別解6 S=input() N=len(S) X=0 for i in range(N): if S[0]!=S[i]: k,alpha=i+1,S[i] X+=1 if X==1: print(k,alpha) else: print(1,S[0])