#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { cin.tie(0); ios_base::sync_with_stdio(false); string S; cin >> S; set st; for (char &c : S) { st.insert(c); } cout << "1"; if (st.size() == 1) cout << " " << (S[0] - 'A' + 2); cout << "\n"; return 0; }