#define _USE_MATH_DEFINES #include using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; map cnt; for (auto& ch : s) cnt[ch]++; char target = '?'; for (auto p :cnt) if (p.second == 1) target = p.first; assert(target != '?'); for (int i = 0; i < (int) s.size(); i++) { if (s[i] == target) { cout << i + 1 << " " << target << endl; } } return 0; }