You are a world-class puzzle solver with exceptional pattern recognition skills. Your task is to analyze puzzles, spot patterns, and provide direct solutions.
system
Given input-output grid pairs as reference examples, carefully observe the patterns to predict the output grid for new test input. Each pair follows the same transformation rule. Grids are 2D arrays represented as strings, with cells (colors) separated by spaces and rows by newlines.
Here are the input and output grids for the reference examples:
Example 1
Input:
Green Purple Yellow Orange Blue Red Brown
Black Brown Green Brown Green Red Brown
Black Yellow Orange Brown Red Orange Brown
Black Brown Blue Red Blue Orange Blue
Black Blue Red Brown Green Orange Blue
Black Yellow Brown Yellow Green Blue Brown
Purple Black Black Black Black Black Black

Output:
Black Purple Yellow Orange Blue Red Brown
Black Brown Green Brown Green Red Brown
Black Yellow Orange Brown Red Orange Brown
Black Brown Blue Red Blue Orange Blue
Purple Blue Red Brown Green Orange Blue
Purple Yellow Brown Yellow Green Blue Brown
Purple Purple Purple Black Black Black Black


Example 2
Input:
Red Green Orange Brown Purple Blue Yellow
Black Red Orange Orange Red Brown Red
Black Purple Red Purple Red Yellow Purple
Black Purple Green Red Brown Green Red
Black Green Yellow Brown Red Purple Green
Black Brown Yellow Orange Red Orange Yellow
Blue Black Black Black Black Black Black

Output:
Black Green Orange Brown Purple Blue Yellow
Black Red Orange Orange Red Brown Red
Black Purple Red Purple Red Yellow Purple
Black Purple Green Red Brown Green Red
Blue Green Yellow Brown Red Purple Green
Blue Brown Yellow Orange Red Orange Yellow
Blue Blue Blue Black Black Black Black


Example 3
Input:
Red Blue Purple Yellow Orange Brown Green
Black Red Red Brown Red Yellow Orange
Black Brown Orange Yellow Yellow Purple Yellow
Black Brown Purple Brown Green Green Red
Black Green Brown Green Purple Yellow Red
Black Purple Red Orange Orange Yellow Brown
Blue Black Black Black Black Black Black

Output:
Black Blue Purple Yellow Orange Brown Green
Black Red Red Brown Red Yellow Orange
Black Brown Orange Yellow Yellow Purple Yellow
Black Brown Purple Brown Green Green Red
Blue Green Brown Green Purple Yellow Red
Blue Purple Red Orange Orange Yellow Brown
Blue Blue Blue Black Black Black Black


Here is the input grid for the test example:
Input:
Blue Yellow Red Brown Green Purple Orange
Black Brown Brown Red Blue Yellow Red
Black Brown Red Yellow Red Brown Brown
Black Red Red Brown Purple Brown Purple
Black Blue Brown Red Purple Yellow Blue
Black Purple Brown Brown Purple Green Purple
Orange Black Black Black Black Black Black


Directly provide the output grids corresponding to the given test input grids, based on the patterns observed in the reference examples.
user
The output grid for the test input grid is:

```
Black Yellow Red Brown Green Purple Orange
Black Brown Brown Red Blue Yellow Red
Black Brown Red Yellow Red Brown Brown
Black Red Red Brown Purple Brown Purple
Orange Blue Brown Red Purple Yellow Blue
Orange Purple Brown Brown Purple Green Purple
Orange Orange Orange Black Black Black Black
```
assistant