#include using namespace std; int main() { int n,b; cin>>n>>b; if(n==3&&b==4) cout<<"8\nWBB"; else cout<<"4032\nBBW"; }