OpenKattis
National University of Singapore

Ads

Please see the printed version.

Input

The first line of the input contains $1 \leq H \leq 200$ and $1 \leq W \leq 200$, the height and width of the imagine to be processed respectively. $H$ lines follow, each line contain exactly $W$ ASCII characters whose ASCII decimal value fall in the range $[32, 126]$.

Output

Output the web page with all the ads removed. Do not print extra spaces or new lines.

Subtasks

  1. (42 Points): There is either one image or no image in the web page.

  2. (28 Points): No images will be found inside other images.

  3. (30 Points): No additional constraint.

Sample Input 1 Sample Output 1
8 20
 apples are great!  
++++++++++++++++++++
+ oranges are      +
+ way better!      +
+ #oranges>apples  +
++++++++++++++++++++
 check out our      
 fresh apples!      
 apples are great!  
                    
                    
                    
                    
                    
 check out our      
 fresh apples!      
Sample Input 2 Sample Output 2
7 7
+++++++
+  =  +
+ +++ +
+ + + +
+ +++ +
+     +
+++++++
       
       
       
       
       
       
       
Sample Input 3 Sample Output 3
7 7
+++++++
+     +
+ +++ +
+ +=+ +
+ +++ +
+     +
+++++++
+++++++
+     +
+     +
+     +
+     +
+     +
+++++++