#include #include #include #include #include #include #include #include #include #include using namespace std; int main() { string s; cin >> s; string same="", diff =""; if (s[0] == s[1]) same += s[0]; else if (s[0] == s[2]) same += s[0]; else if (s[1] == s[2]) same += s[0]; for (int i = 0; i < s.size() -1; i++){ if (s[i] != same[0]){ cout << i + 1 << " " << s[i] << endl; } } }