S = input() se = set(S) for i in se: if S.count(i) == 1: print(S.index(i) + 1, i)