#include #include #include using namespace std; typedef long long int ll; char fi[100][100]; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int h,w; cin >> w >> h; char s; cin >> s; if(s=='B'){ for(int i=0;i