print"$System.in".replaceAll(/ # +/){' #'+'.'*(it.size()-2)}