#include <bits/stdc++.h>
#define inf cin //for testing
#define outf cout
using namespace std;
vector<string> pict;
int main()
{
//ifstream inf("maze1.in");
//ofstream outf("maze1.out");
//cout << setprecision(10);
int w, h;
inf >> w >> h;
string take;
getline(inf, take); //move down a line, >> operator does not take in \n after two numbers
string ch;
for (int i = 0; i < 2*h+1; i++)
{
getline(inf, ch);
pict.push_back(ch);
}
//Will never print on 25x25 maze
for (int i = 0; i < 2*h+1; i++)
{
outf << pict[i] << endl;
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiAKI2RlZmluZSBpbmYgY2luIC8vZm9yIHRlc3RpbmcKI2RlZmluZSBvdXRmIGNvdXQKIAp1c2luZyBuYW1lc3BhY2Ugc3RkOwp2ZWN0b3I8c3RyaW5nPiBwaWN0OwogCmludCBtYWluKCkKewogICAgLy9pZnN0cmVhbSBpbmYoIm1hemUxLmluIik7CiAgICAvL29mc3RyZWFtIG91dGYoIm1hemUxLm91dCIpOwogICAgLy9jb3V0IDw8IHNldHByZWNpc2lvbigxMCk7CiAgIAogICAgaW50IHcsIGg7CiAgICBpbmYgPj4gdyA+PiBoOwogICAKICAgIHN0cmluZyB0YWtlOwogICAgZ2V0bGluZShpbmYsIHRha2UpOyAvL21vdmUgZG93biBhIGxpbmUsID4+IG9wZXJhdG9yIGRvZXMgbm90IHRha2UgaW4gXG4gYWZ0ZXIgdHdvIG51bWJlcnMKICAgCiAgIAogICAgc3RyaW5nIGNoOwogICAKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgMipoKzE7IGkrKykKICAgIHsKICAgICAgICBnZXRsaW5lKGluZiwgY2gpOwogICAgICAgIHBpY3QucHVzaF9iYWNrKGNoKTsKICAgICAgIAogICAgfQogICAKIAogICAgLy9XaWxsIG5ldmVyIHByaW50IG9uIDI1eDI1IG1hemUKIAogICAgZm9yIChpbnQgaSA9IDA7IGkgPCAyKmgrMTsgaSsrKQogICAgewogICAgICAgIG91dGYgPDwgcGljdFtpXSA8PCBlbmRsOwogICAgfQogCiAgICByZXR1cm4gMDsKIAp9
MjUgMjUKKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAorICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsKfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CisgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKwp8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArICsgKyArCnwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAorLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rICs=
25 25
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
| |
+ + + + + + + + + + + + + + + + + + + + + + + + + +
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +