Een afbeelding bestaat uit een aantal regels die we op de volgende manier gecodeerd hebben. We kiezen een scheidingsteken dat nergens voorkomt in de regels van de afbeelding. Daarna knippen we elke regel in twee delen die niet noodzakelijk even lang moeten zijn, wisselen we de twee delen van volgorde en plaatsen er het scheidingsteken tussen. Op deze manier wordt de afbeelding

abcde
fghij
klmno
pqrst
uvxxy

bijvoorbeeld gecodeerd als

cde|ab
j|fghi
lmno|k
st|pqr
uvxxy|

met een verticale streep (|) als scheidingsteken. Je opdracht bestaat erin de gecodeerde afbeelding te decoderen.

Invoer

De eerste regel bevat een scheidingsteken. De tweede regel bevat een getal $$t \in \mathbb{N}_0$$. Daarna volgen $$t$$ regels waarin het scheidingsteken telkens juist één keer voorkomt.

Uitvoer

De $$t$$ gegeven regels waarin de delen voor en na het scheidingsteken omgewisseld worden, en het scheidingsteken zelf weggelaten wordt.

Voorbeeld

Invoer:

|
26
                   |                          oooo$$$$$$$$$$$$oooo          
      |                      oo$$$$$$$$$$$$$$$$$$$$$$$$o                    
$o         o$   $$ o$    |                   oo$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$o       $$ $$ $$o$   |   o $ oo        o$$$$$$$$$$$$$$$$$$$$
    $$$o$$o$    |oo $ $ "$      o$$$$$$$$$    $$$$$$$$$$$$$    $$$$$$$$$o   
$$$$$$$o    $$$$$$$$     |"$$$$$$o$     o$$$$$$$$$      $$$$$$$$$$$      $$$
$$     |  $$$$$$$    $$$$$$$$$$$      $$$$$$$$$$$      $$$$$$$$$$$$$$$$$$$$$
  $$$$$$$$$$$$$$  """$$$       |  $$$$$$$$$$$$$$$$$$$$$$$    $$$$$$$$$$$$$  
$$$$$$$$$     "$$$      |   "$$$""""$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$     "$$$o    |    $$$   o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$o   |   o$$"   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$       $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" "$$$$$$ooooo$$$$o |   $$$    $$$$$$$$$$$$$$$$
$$$oooo$$$$$  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$   o$$$$$$$$$$$$$$$$$|  o
$$$$$$$$$$$$$$$$$$     $$$$""""""""      |  $$$$$$$$"$$$$   $$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$"      o$$$               | """"       $$$$    "$$
         "$$$o     """$$$$$$$$$$$$$$$$$$"$$"         $$$                |   
          "$$""$$$$$$""""           o$$$                 |              $$$o
            o$$$"                  |               $$$$o                 oo 
                |                "$$$$o      o$$$$$$o"$$$$o        o$$$$    
|                  "$$$$$oo     ""$$$$o$$$$$o   o$$$$""                     
o$$$$$$$$$"""                        |                     ""$$$$$oooo  "$$$
             ""$$$$$$$oo $$$$$$$$$$                             |           
$$$$$$$$$$$                            |                                """"
$$$$$$$$                           |                                    $$$$
                           |                                     $$$$$$$$$$"
                                 "$$$""""                             |     

Uitvoer:

                          oooo$$$$$$$$$$$$oooo                             
                      oo$$$$$$$$$$$$$$$$$$$$$$$$o                          
                   oo$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o         o$   $$ o$    
   o $ oo        o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o       $$ $$ $$o$   
oo $ $ "$      o$$$$$$$$$    $$$$$$$$$$$$$    $$$$$$$$$o       $$$o$$o$    
"$$$$$$o$     o$$$$$$$$$      $$$$$$$$$$$      $$$$$$$$$$o    $$$$$$$$     
  $$$$$$$    $$$$$$$$$$$      $$$$$$$$$$$      $$$$$$$$$$$$$$$$$$$$$$$     
  $$$$$$$$$$$$$$$$$$$$$$$    $$$$$$$$$$$$$    $$$$$$$$$$$$$$  """$$$       
   "$$$""""$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     "$$$      
    $$$   o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     "$$$o    
   o$$"   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$       $$$o   
   $$$    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" "$$$$$$ooooo$$$$o 
  o$$$oooo$$$$$  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$   o$$$$$$$$$$$$$$$$$
  $$$$$$$$"$$$$   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     $$$$""""""""      
 """"       $$$$    "$$$$$$$$$$$$$$$$$$$$$$$$$$$$"      o$$$               
            "$$$o     """$$$$$$$$$$$$$$$$$$"$$"         $$$                
              $$$o          "$$""$$$$$$""""           o$$$                 
               $$$$o                 oo             o$$$"                  
                "$$$$o      o$$$$$$o"$$$$o        o$$$$                    
                  "$$$$$oo     ""$$$$o$$$$$o   o$$$$""                     
                     ""$$$$$oooo  "$$$o$$$$$$$$$"""                        
                        ""$$$$$$$oo $$$$$$$$$$                             
                                """"$$$$$$$$$$$                            
                                    $$$$$$$$$$$$                           
                                     $$$$$$$$$$"                           
                                      "$$$""""