#include using namespace std; typedef long long ll; typedef string str; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); ll n, m; char k; cin >> n >> m >> k; bool check = false; if (n % 2 == 1 && m % 2 == 1) check = true; for (ll i = 0; i < m; i++) { for (ll j = 0; j < n; j++) { cout << k; if (k == 'B') k = 'W'; else k = 'B'; } if (k == 'B' && !check) k = 'W'; else if (k == 'W' && !check) k = 'B'; cout << "\n"; } return 0; }