s = gets.chomp c = s.chars.tally.find { _2 == 1 }[0] puts [s.index(c) + 1, c] * ' '