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

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


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

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


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

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


Here is the input grid for the test example:
Input:
Brown Gray Brown Pink Green Gray Pink
Brown Pink Gray Pink Gray Pink Blue


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:

```
Brown Gray Brown Pink Purple Gray Pink
Brown Pink Gray Pink Gray Pink Yellow
Brown Gray Brown Pink Purple Gray Pink
Brown Pink Gray Pink Gray Pink Yellow
```
assistant