#別解2 S=input() a,b,c=S[:3] if a==b: x=a elif b==c: x=b else: x=c for i in range(len(S)): if S[i]!=x: print(i+1,S[i])