#include <iostream>
#include <vector>
using v_type = std::vector<std::vector<char>>;
void display(const v_type& v)
{
for (auto& row : v)
{
for (auto& cell : row)
std::cout << cell;
std::cout << '\n';
}
std::cout << '\n';
}
int main()
{
v_type v(13, std::vector<char>(5, '.'));
display(v);
v[1][1] = 'X';
v[1][2] = '#';
v[1][4] = 'S';
v[4][0] = 'E';
v[4][1] = '#';
v[6][0] = 'X';
v[7][2] = 'X';
v[12][0] = '@';
display(v);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgdl90eXBlID0gc3RkOjp2ZWN0b3I8c3RkOjp2ZWN0b3I8Y2hhcj4+OwoKdm9pZCBkaXNwbGF5KGNvbnN0IHZfdHlwZSYgdikKewogICAgZm9yIChhdXRvJiByb3cgOiB2KQogICAgewogICAgICAgIGZvciAoYXV0byYgY2VsbCA6IHJvdykKICAgICAgICAgICAgc3RkOjpjb3V0IDw8IGNlbGw7CiAgICAgICAgc3RkOjpjb3V0IDw8ICdcbic7CiAgICB9CgogICAgc3RkOjpjb3V0IDw8ICdcbic7Cn0KCmludCBtYWluKCkKewogICAgdl90eXBlIHYoMTMsIHN0ZDo6dmVjdG9yPGNoYXI+KDUsICcuJykpOwoKICAgIGRpc3BsYXkodik7CgogICAgdlsxXVsxXSA9ICdYJzsKICAgIHZbMV1bMl0gPSAnIyc7CiAgICB2WzFdWzRdID0gJ1MnOwoKICAgIHZbNF1bMF0gPSAnRSc7CiAgICB2WzRdWzFdID0gJyMnOwoKICAgIHZbNl1bMF0gPSAnWCc7CiAgICB2WzddWzJdID0gJ1gnOwoKICAgIHZbMTJdWzBdID0gJ0AnOwoKICAgIGRpc3BsYXkodik7Cn0=