main=interact(\n->do a:x<-lines"# #\n \n \n \n \n \n# #";x++([2..read n]>>"# "++[a])++"#\n")