#include #define rep(i,n) for(int i = 0; i < (int)(n); i++) using namespace std; using LL = long long; using P = pair; using vv = vector>; const int INF = (int)1e9; const LL LINF = (LL)1e18; int main(){ string S; cin >> S; int N = S.size(); rep(i,N-1){ if(S[i] != S[i+1]){ cout << 1 << endl; return 0; } } cout << 1 << " " << S[0] - 'A' + 2 << endl; return 0; }