#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef vector vi; typedef vector vvi; typedef vector vs; #define all(c) (c).begin(), (c).end() #define loop(i,a,b) for(ll i=a; iDUMP &operator,(const T&t){if(this->tellp())*this<<", ";*this<>s){ string e=A, o=B; if(s=="oda")swap(e,o); vs g(8); rep(i,8)cin>>g[i]; int cnt=0; rep(i,8)rep(j,8){ cnt+=g[i][j]!='.'; } cout << cnt << endl; cout << (cnt%2 ? e : o) << endl; } }