#include #include using namespace std; int main(){ string s;cin>>s; map A; for(int i = 0; s.size() > i; i++){ A[s[i]]++; } for(int i = 0; s.size() > i; i++){ if(A[s[i]] == 1){ cout << i+1 << " " << s[i] << endl; return 0; } } }