process.stdin.resume();
process.stdin.setEncoding('utf8');
var StrtHash = "";
var StrtSpc = "";
var ChsTbl = "";
var Hgt = 9;
var Wdt = 9;
var Cnt = 0;
while(Cnt < Wdt) {
Cnt++;
if(Cnt % 2 == 0)
StrtHash = StrtHash + " ", StrtSpc = StrtSpc + "#";
else StrtHash = StrtHash + "#", StrtSpc = StrtSpc + " ";
}
var Cnt = 0;
while(Cnt < Hgt) {
Cnt++;
if (Cnt % 2 != 0)
ChsTbl = ChsTbl + StrtHash + "\n";
else ChsTbl = ChsTbl + StrtSpc + "\n";
}
console.log(ChsTbl);
cHJvY2Vzcy5zdGRpbi5yZXN1bWUoKTsKcHJvY2Vzcy5zdGRpbi5zZXRFbmNvZGluZygndXRmOCcpOwoKdmFyIFN0cnRIYXNoID0gIiI7CnZhciBTdHJ0U3BjID0gIiI7CnZhciBDaHNUYmwgPSAiIjsKdmFyIEhndCA9IDk7CnZhciBXZHQgPSA5Owp2YXIgQ250ID0gMDsKd2hpbGUoQ250IDwgV2R0KSB7CiAgQ250Kys7CiAgICBpZihDbnQgJSAyID09IDApCiAgICAgICAgU3RydEhhc2ggPSBTdHJ0SGFzaCArICIgIiwgU3RydFNwYyA9IFN0cnRTcGMgKyAiIyI7CiAgICBlbHNlIFN0cnRIYXNoID0gU3RydEhhc2ggKyAiIyIsIFN0cnRTcGMgPSBTdHJ0U3BjICsgIiAiOwp9CnZhciBDbnQgPSAwOwp3aGlsZShDbnQgPCBIZ3QpIHsKICBDbnQrKzsKICAgIGlmIChDbnQgJSAyICE9IDApIAogICAgICBDaHNUYmwgPSBDaHNUYmwgKyBTdHJ0SGFzaCArICJcbiI7CiAgICBlbHNlIENoc1RibCA9IENoc1RibCArIFN0cnRTcGMgKyAiXG4iOwp9CmNvbnNvbGUubG9nKENoc1RibCk7