#include <bits/stdc++.h>
using namespace std;

int main(){
  int H, W;
  cin >> H >> W;
  string A, B, C;
  for(int i = 0; i < W + 2; i++){
    A.push_back('#');
  }
  cout << A << endl;
  for(int j = 0; j < H; j++){
    cin >> B;
    cout << "#" << B << "#" << endl;
  }
  cout << A << endl;
}
  