#### Reading the Input Data and Print the First and the Last Rows

The first thing we can easily notice is that the first and last rows contain 2 * n symbols %. We will start with this and then draw the middle of the rectangle.