import collections S = list(input()) SC = collections.Counter(S) for k,v in SC.items(): if v==1: print(str(S.index(k)+1),k)