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