#include #define rep(i,n) for(int i = 0; i < int(n); i++) #define rrep(i,n) for(int i = int(n)-1; i >= 0; i--) #define all(a) a.begin(),a.end() #define rall(a) a.rbegin(),a.rend() #define pb push_back using namespace std; using ll = long long; using P = pair; int dx[] = {1, 0,-1, 0, 1, 1,-1,-1}; int dy[] = {0, 1, 0,-1, 1,-1, 1,-1}; int mod = 998244353; int MOD = 1000000007; int inf = 1001001001; ll INF = 1001001001001001001; int main() { string s; cin >> s; mapmp,mp2; rep(i,s.size()) { mp[s[i]]++; mp2[s[i]] = i+1; } for(pair x:mp) { if(x.second == 1) { cout << mp2[x.first] << " " << x.first << endl; } } }