#include using namespace std; struct uns_t {} uns; template auto vec(Element init, Head arg, Args ...args) { if constexpr (sizeof...(Args) == 0) return std::vector(arg, init); else return std::vector(arg, vec(init, args...)); } template auto vec(uns_t, Head arg, Args ...args) { return vec(Element(), arg, args...); } int main() { string s; cin >> s; map idx; for (int i = 0; i < s.size(); ++i) { idx[s[i]] = i + 1; } for (auto [c, i] : idx) { if (count(begin(s), end(s), c) == 1) { cout << i << ' ' << c << endl; } } }