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:
Orange Orange Brown Yellow Gray Orange
Gray Pink Brown Green Pink Orange
Yellow Green Purple Purple Brown Brown
Brown Brown Purple Purple Green Yellow
Orange Pink Green Brown Pink Gray
Orange Gray Yellow Brown Orange Orange

Output:
Pink Pink Gray Orange Red Pink
Red Purple Gray Blue Purple Pink
Orange Blue Brown Brown Gray Gray
Gray Gray Brown Brown Blue Orange
Pink Purple Blue Gray Purple Red
Pink Red Orange Gray Pink Pink


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

Output:
Pink Brown Red Red Green
Brown Gray Orange Pink Gray
Yellow Yellow Blue Gray Gray
Brown Gray Orange Pink Gray
Pink Brown Red Red Green


Example 3
Input:
Blue Gray Brown Brown Orange
Blue Brown Pink Brown Orange
Yellow Orange Pink Blue Purple
Brown Orange Yellow Blue Brown
Yellow Orange Pink Blue Purple
Blue Brown Pink Brown Orange
Blue Gray Brown Brown Orange

Output:
Yellow Red Gray Gray Pink
Yellow Gray Purple Gray Pink
Orange Pink Purple Yellow Brown
Gray Pink Orange Yellow Gray
Orange Pink Purple Yellow Brown
Yellow Gray Purple Gray Pink
Yellow Red Gray Gray Pink


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


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:

```
Gray Blue Orange Orange Orange Blue Gray
Purple Green Gray Blue Gray Green Purple
Pink Green Gray Gray Gray Green Pink
Pink Gray Gray Gray Gray Gray Pink
Red Orange Brown Gray Brown Orange Red
Yellow Brown Purple Purple Purple Brown Yellow
Brown Brown Brown Purple Brown Brown Brown
```
assistant