#別解7 from string import ascii_letters as X X+="0123456789" S=input() for x in X: if S.count(x)==1: print(S.find(x)+1,x)